patch-1.3.85 linux/net/core/firewall.c

Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.84/linux/net/core/firewall.c linux/net/core/firewall.c
@@ -98,13 +98,13 @@
 	return -ENOENT;
 }
 
-int call_fw_firewall(int pf, struct sk_buff *skb, void *phdr)
+int call_fw_firewall(int pf, struct device *dev, void *phdr)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
 	
 	while(fw!=NULL)
 	{
-		int rc=fw->fw_forward(fw,pf,skb,phdr);
+		int rc=fw->fw_forward(fw,pf,dev,phdr);
 		if(rc!=FW_SKIP)
 			return rc;
 		fw=fw->next;
@@ -116,13 +116,13 @@
  *	Actual invocation of the chains
  */
  
-int call_in_firewall(int pf, struct sk_buff *skb, void *phdr)
+int call_in_firewall(int pf, struct device *dev, void *phdr)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
 	
 	while(fw!=NULL)
 	{
-		int rc=fw->fw_input(fw,pf,skb,phdr);
+		int rc=fw->fw_input(fw,pf,dev,phdr);
 		if(rc!=FW_SKIP)
 			return rc;
 		fw=fw->next;
@@ -130,13 +130,13 @@
 	return firewall_policy[pf];
 }
 
-int call_out_firewall(int pf, struct sk_buff *skb, void *phdr)
+int call_out_firewall(int pf, struct device *dev, void *phdr)
 {
 	struct firewall_ops *fw=firewall_chain[pf];
 	
 	while(fw!=NULL)
 	{
-		int rc=fw->fw_output(fw,pf,skb,phdr);
+		int rc=fw->fw_output(fw,pf,dev,phdr);
 		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