FreeBSD Bugzilla – Attachment 175361 Details for
Bug 213154
[patch] allow ipfw nat single pass with ipfw netgraph multi pass
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
qqqq.diff (text/plain), 1.07 KB, created by
John Zielinski
on 2016-10-02 05:06:56 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
John Zielinski
Created:
2016-10-02 05:06:56 UTC
Size:
1.07 KB
patch
obsolete
>Index: ip_fw_pfil.c >=================================================================== >--- ip_fw_pfil.c (revision 306382) >+++ ip_fw_pfil.c (working copy) >@@ -79,6 +79,9 @@ > static VNET_DEFINE(int, fwlink_enable) = 0; > #define V_fwlink_enable VNET(fwlink_enable) > >+static VNET_DEFINE(int, fw_one_pass_nat) = 0; >+#define V_fw_one_pass_nat VNET(fw_one_pass_nat) >+ > int ipfw_chg_hook(SYSCTL_HANDLER_ARGS); > > /* Forward declarations. */ >@@ -103,6 +106,10 @@ > &VNET_NAME(fw6_enable), 0, ipfw_chg_hook, "I", "Enable ipfw+6"); > #endif /* INET6 */ > >+SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, one_pass_nat, >+ CTLFLAG_VNET | CTLFLAG_RW | CTLFLAG_SECURE3, &VNET_NAME(fw_one_pass_nat), 0, >+ "Only do a single pass through ipfw when using nat"); >+ > SYSCTL_DECL(_net_link_ether); > SYSCTL_PROC(_net_link_ether, OID_AUTO, ipfw, > CTLFLAG_VNET | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE3, >@@ -281,7 +288,7 @@ > > case IP_FW_NAT: > /* honor one-pass in case of successful nat */ >- if (V_fw_one_pass) >+ if (V_fw_one_pass || V_fw_one_pass_nat) > break; /* ret is already 0 */ > goto again; >
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 213154
: 175361