improve range6.patch
This commit is contained in:
parent
aebaf50d8d
commit
077cc7630b
@ -11,8 +11,8 @@ index 12ab0e6..4454be9 100644
|
||||
+ char lowbuf [INET6_ADDRSTRLEN], netbuf [INET6_ADDRSTRLEN];
|
||||
+
|
||||
+ if (!addr_eq(subnet->net, subnet_number(*addr, subnet->netmask))) {
|
||||
+ strcpy(lowbuf, piaddr(*addr));
|
||||
+ strcpy(netbuf, piaddr(subnet->net));
|
||||
+ strncpy(lowbuf, piaddr(*addr), INET6_ADDRSTRLEN);
|
||||
+ strncpy(netbuf, piaddr(subnet->net), INET6_ADDRSTRLEN);
|
||||
+ log_fatal("bad range6, address %s not in subnet6 %s/%d",
|
||||
+ lowbuf, netbuf, subnet->prefix_len);
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user