projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix datagram SPTPS.
[tinc]
/
src
/
subnet_parse.c
diff --git
a/src/subnet_parse.c
b/src/subnet_parse.c
index
22f5d70
..
f980180
100644
(file)
--- a/
src/subnet_parse.c
+++ b/
src/subnet_parse.c
@@
-104,7
+104,7
@@
static int subnet_compare_mac(const subnet_t *a, const subnet_t *b) {
if(result)
return result;
if(result)
return result;
-
+
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
@@
-125,7
+125,7
@@
static int subnet_compare_ipv4(const subnet_t *a, const subnet_t *b) {
if(result)
return result;
if(result)
return result;
-
+
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
@@
-141,12
+141,12
@@
static int subnet_compare_ipv6(const subnet_t *a, const subnet_t *b) {
if(result)
return result;
if(result)
return result;
-
+
result = memcmp(&a->net.ipv6.address, &b->net.ipv6.address, sizeof(ipv6_t));
if(result)
return result;
result = memcmp(&a->net.ipv6.address, &b->net.ipv6.address, sizeof(ipv6_t));
if(result)
return result;
-
+
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)