Page MenuHomeFreeBSD

D26358.diff
No OneTemporary

D26358.diff

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

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)

Event Timeline