patch-1.3.60 linux/net/ipv4/ip_input.c
Next file: linux/net/ipv4/ip_output.c
Previous file: linux/net/ipv4/ip_fw.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Feb 7 08:55:46 1996
- Orig file:
v1.3.59/linux/net/ipv4/ip_input.c
- Orig date:
Sun Jan 14 16:30:16 1996
diff -u --recursive --new-file v1.3.59/linux/net/ipv4/ip_input.c linux/net/ipv4/ip_input.c
@@ -308,13 +308,13 @@
if(iph->frag_off)
{
if (iph->frag_off & htons(IP_MF))
- is_frag|=1;
+ is_frag|=IPFWD_FRAGMENT;
/*
* Last fragment ?
*/
if (iph->frag_off & htons(IP_OFFSET))
- is_frag|=2;
+ is_frag|=IPFWD_LASTFRAG;
}
/*
@@ -416,7 +416,7 @@
if (ip_fw_demasquerade(skb))
{
struct iphdr *iph=skb->h.iph;
- if (ip_forward(skb, dev, is_frag|4, iph->daddr))
+ if (ip_forward(skb, dev, is_frag|IPFWD_MASQUERADED, iph->daddr))
kfree_skb(skb, FREE_WRITE);
return(0);
}
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