if(result)
return result;
-
+
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
if(result)
return result;
-
+
result = a->weight - b->weight;
if(result || !a->owner || !b->owner)
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)
subnet->net.ipv4.prefixlength = l;
subnet->weight = weight;
- for(i = 0; i < 4; i++) {
+ for(int i = 0; i < 4; i++) {
if(x[i] > 255)
return false;
subnet->net.ipv4.address.x[i] = x[i];