Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135367149
D25734.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
875 B
Referenced Files
None
Subscribers
None
D25734.id.diff
View Options
Index: head/sbin/ipfw/nat64clat.c
===================================================================
--- head/sbin/ipfw/nat64clat.c
+++ head/sbin/ipfw/nat64clat.c
@@ -303,6 +303,9 @@
if ((p = strchr(*av, '/')) != NULL)
*p++ = '\0';
+ else
+ errx(EX_USAGE,
+ "Prefix length required: %s", *av);
if (inet_pton(AF_INET6, *av, &prefix) != 1)
errx(EX_USAGE,
"Bad prefix: %s", *av);
Index: head/sbin/ipfw/nat64stl.c
===================================================================
--- head/sbin/ipfw/nat64stl.c
+++ head/sbin/ipfw/nat64stl.c
@@ -249,6 +249,9 @@
NEED1("IPv6 prefix6 required");
if ((p = strchr(*av, '/')) != NULL)
*p++ = '\0';
+ else
+ errx(EX_USAGE,
+ "Prefix length required: %s", *av);
if (inet_pton(AF_INET6, *av, &cfg->prefix6) != 1)
errx(EX_USAGE,
"Bad prefix: %s", *av);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 4:18 AM (5 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25096027
Default Alt Text
D25734.id.diff (875 B)
Attached To
Mode
D25734: ipfw nat64 improve prefix length checks
Attached
Detach File
Event Timeline
Log In to Comment