patch-1.3.36 linux/net/ipv4/ipip.c

Next file: linux/net/ipv4/packet.c
Previous file: linux/net/ipv4/ip_sockglue.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.35/linux/net/ipv4/ipip.c linux/net/ipv4/ipip.c
@@ -32,7 +32,7 @@
 #include <linux/udp.h>
 #include <net/protocol.h>
 #include <net/ipip.h>
-#include <linux/ip_fw.h>
+#include <linux/firewall.h>
 
 /*
  * NB. we must include the kernel idenfication string in to install the module.
@@ -84,17 +84,18 @@
 	skb->h.iph=(struct iphdr *)skb->data;
 	skb->ip_hdr=(struct iphdr *)skb->data;
 	memset(skb->proto_priv, 0, sizeof(struct options));
-	if (skb->ip_hdr->ihl > 5) {
-	  if (ip_options_compile(NULL, skb))
-	    return 0;
+	if (skb->ip_hdr->ihl > 5) 
+	{
+		if (ip_options_compile(NULL, skb))
+			return 0;
 	}
 	
-#ifdef CONFIG_IP_FIREWALL
+#ifdef CONFIG_FIREWALL
 	/*
 	 *	Check the firewall [well spotted Olaf]
 	 */
 	 
-	if((err=ip_fw_chk(skb->ip_hdr,dev,ip_fw_blk_chain, ip_fw_blk_policy,0))<FW_ACCEPT)
+	if((err=call_in_firewall(PF_INET, skb, skb->ip_hdr))<FW_ACCEPT)
 	{
 		if(err==FW_REJECT)
 			icmp_send(skb,ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0 , dev);

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