patch-1.3.10 linux/net/ipv4/ipip.c
Next file: linux/net/ipv4/route.c
Previous file: linux/net/ipv4/ip.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Wed Jul 12 18:24:18 1995
- Orig file:
v1.3.9/linux/net/ipv4/ipip.c
- Orig date:
Fri Jun 16 22:02:56 1995
diff -u --recursive --new-file v1.3.9/linux/net/ipv4/ipip.c linux/net/ipv4/ipip.c
@@ -56,8 +56,8 @@
#ifdef TUNNEL_DEBUG
printk("ipip_rcv: got a packet!\n");
#endif
- ip_forward(skb, dev, 0, daddr, 0);
- kfree_skb(skb, FREE_READ);
+ if(ip_forward(skb, dev, 0, daddr, 0))
+ kfree_skb(skb, FREE_READ);
MOD_DEC_USE_COUNT;
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