chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import release 0.1.10
[secnet]
/
ipaddr.c
diff --git
a/ipaddr.c
b/ipaddr.c
index 2dc5928819cd543b328b7ef9788c4702f0c01753..f42e82016319b702cd31b88e9075e8663d2ee04b 100644
(file)
--- a/
ipaddr.c
+++ b/
ipaddr.c
@@
-74,7
+74,8
@@
string_t subnet_to_string(struct subnet *sn)
mask=(mask<<1);
}
if (i!=sn->len) {
mask=(mask<<1);
}
if (i!=sn->len) {
- fatal("subnet_to_string: invalid subnet structure!\n");
+ fatal("subnet_to_string: invalid subnet structure "
+ "(i=%d sn->len=%d mask=0x%08x)!\n",i,sn->len,sn->mask);
}
snprintf(s, 19, "%d.%d.%d.%d/%d", a, b, c, d, sn->len);
return s;
}
snprintf(s, 19, "%d.%d.%d.%d/%d", a, b, c, d, sn->len);
return s;