projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix weight comparison in edge BFS
[tinc]
/
src
/
info.c
diff --git
a/src/info.c
b/src/info.c
index
1649be0
..
25e6b60
100644
(file)
--- a/
src/info.c
+++ b/
src/info.c
@@
-1,6
+1,6
@@
/*
info.c -- Show information about a node, subnet or address
/*
info.c -- Show information about a node, subnet or address
- Copyright (C) 2012-20
17
Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2012-20
22
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-20,9
+20,10
@@
#include "system.h"
#include "control_common.h"
#include "system.h"
#include "control_common.h"
+#include "info.h"
+#include "logger.h"
#include "subnet.h"
#include "tincctl.h"
#include "subnet.h"
#include "tincctl.h"
-#include "info.h"
#include "utils.h"
void logger(int level, int priority, const char *format, ...) {
#include "utils.h"
void logger(int level, int priority, const char *format, ...) {
@@
-297,7
+298,7
@@
static int info_subnet(int fd, const char *item) {
continue;
}
continue;
}
- if(memcmp(&find.net.ipv4.address, &subnet.net.ipv4.address, sizeof(subnet.net.ipv4))) {
+ if(memcmp(&find.net.ipv4.address, &subnet.net.ipv4.address, sizeof(subnet.net.ipv4
.address
))) {
continue;
}
}
continue;
}
}
@@
-311,14
+312,14
@@
static int info_subnet(int fd, const char *item) {
continue;
}
continue;
}
- if(memcmp(&find.net.ipv6.address, &subnet.net.ipv6.address, sizeof(subnet.net.ipv6))) {
+ if(memcmp(&find.net.ipv6.address, &subnet.net.ipv6.address, sizeof(subnet.net.ipv6
.address
))) {
continue;
}
}
}
if(find.type == SUBNET_MAC) {
continue;
}
}
}
if(find.type == SUBNET_MAC) {
- if(memcmp(&find.net.mac.address, &subnet.net.mac.address, sizeof(subnet.net.mac))) {
+ if(memcmp(&find.net.mac.address, &subnet.net.mac.address, sizeof(subnet.net.mac
.address
))) {
continue;
}
}
continue;
}
}