Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103055565
D26358.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
701 B
Referenced Files
None
Subscribers
None
D26358.diff
View Options
Index: sbin/ipfw/ipfw2.c
===================================================================
--- sbin/ipfw/ipfw2.c
+++ sbin/ipfw/ipfw2.c
@@ -4561,6 +4561,19 @@
break;
case TOK_FRAG:
+ /*
+ * Compatibility: argument after "frag"
+ * which is not a frag token equals to "frag offset"
+ */
+
+ if (((*av != NULL) && (strchr(*av, ',') == NULL)) &&
+ (((strchr(*av, '!') == NULL) && (match_token(f_ipoff, *av) == -1)) ||
+ (**av == '!' && (match_token(f_ipoff, *av + 1) == -1)))) {
+ fill_flags_cmd(cmd, O_FRAG, f_ipoff, NULL);
+ cmd->arg1 = 0x1;
+ break;
+ }
+
fill_flags_cmd(cmd, O_FRAG, f_ipoff, *av);
/*
* Compatibility: no argument after "frag"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 8:44 AM (22 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14757873
Default Alt Text
D26358.diff (701 B)
Attached To
Mode
D26358: ipfw: fix compatibility with frag and older rule sets
Attached
Detach File
Event Timeline
Log In to Comment