FreeBSD Bugzilla – Attachment 10927 Details for
Bug 21735
Let ipfw increment rules by arbitrary amount
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.76 KB, created by
patrick
on 2000-10-03 23:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
patrick
Created:
2000-10-03 23:10:01 UTC
Size:
1.76 KB
patch
obsolete
>--- sys/netinet/ip_fw.c.orig Tue Oct 3 13:49:23 2000 >+++ sys/netinet/ip_fw.c Tue Oct 3 14:01:36 2000 >@@ -78,6 +78,7 @@ > #else > static int fw_verbose_limit = 0; > #endif >+static int fw_auto_increment = 100; > > static u_int64_t counter; /* counter for ipfw_report(NULL...) */ > struct ipfw_flow_id last_pkt ; >@@ -102,6 +103,8 @@ > &fw_verbose, 0, "Log matches to ipfw rules"); > SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, verbose_limit, CTLFLAG_RW, > &fw_verbose_limit, 0, "Set upper limit of matches of ipfw rules logged"); >+SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, auto_increment, CTLFLAG_RW, >+ &fw_auto_increment, 0, "Amount by which to increment rule numbers when it is not specified"); > > #if STATEFUL > /* >@@ -1458,7 +1461,7 @@ > return(0); > } > >- /* If entry number is 0, find highest numbered rule and add 100 */ >+ /* If entry number is 0, find highest numbered rule and add fw_auto_increment */ > if (ftmp->fw_number == 0) { > for (fcp = LIST_FIRST(chainptr); fcp; fcp = LIST_NEXT(fcp, chain)) { > if (fcp->rule->fw_number != (u_short)-1) >@@ -1466,8 +1469,8 @@ > else > break; > } >- if (nbr < IPFW_DEFAULT_RULE - 100) >- nbr += 100; >+ if (nbr < IPFW_DEFAULT_RULE - fw_auto_increment) >+ nbr += fw_auto_increment; > ftmp->fw_number = nbr; > } > >--- sbin/ipfw/ipfw.8.orig Tue Oct 3 14:11:34 2000 >+++ sbin/ipfw/ipfw.8 Tue Oct 3 14:15:10 2000 >@@ -1056,6 +1056,8 @@ > firewall even if compiled in. > .It Em net.inet.ip.fw.verbose_limit : No 0 > Limits the number of messages produced by a verbose firewall. >+.It Em net.inet.ip.fw.auto_increment : No 100 >+Amount by which to increment the current rule number when none is specified > .It Em net.inet.ip.fw.dyn_buckets : No 256 > .It Em net.inet.ip.fw.curr_dyn_buckets : No 256 > The configured and current size of the hash table used to
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21735
: 10927