patch-1.3.85 linux/net/ipv4/ip_fw.c
Next file: linux/net/ipv4/ip_input.c
Previous file: linux/net/ipv4/ip_forward.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Mon Apr 8 11:41:04 1996
- Orig file:
v1.3.84/linux/net/ipv4/ip_fw.c
- Orig date:
Sun Mar 31 00:13:19 1996
diff -u --recursive --new-file v1.3.84/linux/net/ipv4/ip_fw.c linux/net/ipv4/ip_fw.c
@@ -96,7 +96,6 @@
#include <net/route.h>
#include <net/tcp.h>
#include <net/udp.h>
-#include <linux/skbuff.h>
#include <net/sock.h>
#include <net/icmp.h>
#include <linux/firewall.h>
@@ -607,8 +606,12 @@
}
memcpy(ftmp, frwl, len);
- ftmp->fw_tosand |= 0x03;
- ftmp->fw_tosxor &= 0xFC;
+ /*
+ * Allow the more recent "minimise cost" flag to be
+ * set. [Rob van Nieuwkerk]
+ */
+ ftmp->fw_tosand |= 0x01;
+ ftmp->fw_tosxor &= 0xFE;
ftmp->fw_pcnt=0L;
ftmp->fw_bcnt=0L;
@@ -1063,19 +1066,19 @@
* Interface to the generic firewall chains.
*/
-int ipfw_input_check(struct firewall_ops *this, int pf, struct sk_buff *skb, void *phdr)
+int ipfw_input_check(struct firewall_ops *this, int pf, struct device *dev, void *phdr)
{
- return ip_fw_chk(phdr, skb->dev, ip_fw_in_chain, ip_fw_in_policy, 0);
+ return ip_fw_chk(phdr, dev, ip_fw_in_chain, ip_fw_in_policy, 0);
}
-int ipfw_output_check(struct firewall_ops *this, int pf, struct sk_buff *skb, void *phdr)
+int ipfw_output_check(struct firewall_ops *this, int pf, struct device *dev, void *phdr)
{
- return ip_fw_chk(phdr, skb->dev, ip_fw_out_chain, ip_fw_out_policy, 0);
+ return ip_fw_chk(phdr, dev, ip_fw_out_chain, ip_fw_out_policy, 0);
}
-int ipfw_forward_check(struct firewall_ops *this, int pf, struct sk_buff *skb, void *phdr)
+int ipfw_forward_check(struct firewall_ops *this, int pf, struct device *dev, void *phdr)
{
- return ip_fw_chk(phdr, skb->dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
+ return ip_fw_chk(phdr, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
}
struct firewall_ops ipfw_ops=
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