patch-pre2.0.7 linux/net/core/firewall.c

Next file: linux/net/ipv4/Config.in
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.6/linux/net/core/firewall.c linux/net/core/firewall.c
@@ -99,13 +99,13 @@
 	return -ENOENT;
 }
 
-int call_fw_firewall(int pf, struct device *dev, void *phdr)
+int call_fw_firewall(int pf, struct device *dev, void *phdr, void *arg)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
 	
 	while(fw!=NULL)
 	{
-		int rc=fw->fw_forward(fw,pf,dev,phdr);
+		int rc=fw->fw_forward(fw,pf,dev,phdr,arg);
 		if(rc!=FW_SKIP)
 			return rc;
 		fw=fw->next;
@@ -117,13 +117,13 @@
  *	Actual invocation of the chains
  */
  
-int call_in_firewall(int pf, struct device *dev, void *phdr)
+int call_in_firewall(int pf, struct device *dev, void *phdr, void *arg)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
 	
 	while(fw!=NULL)
 	{
-		int rc=fw->fw_input(fw,pf,dev,phdr);
+		int rc=fw->fw_input(fw,pf,dev,phdr,arg);
 		if(rc!=FW_SKIP)
 			return rc;
 		fw=fw->next;
@@ -131,13 +131,13 @@
 	return firewall_policy[pf];
 }
 
-int call_out_firewall(int pf, struct device *dev, void *phdr)
+int call_out_firewall(int pf, struct device *dev, void *phdr, void *arg)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
 	
 	while(fw!=NULL)
 	{
-		int rc=fw->fw_output(fw,pf,dev,phdr);
+		int rc=fw->fw_output(fw,pf,dev,phdr,arg);
 		if(rc!=FW_SKIP)
 			return rc;
 		fw=fw->next;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this