patch-2.4.4 linux/net/ipv4/ip_forward.c
Next file: linux/net/ipv4/ip_fragment.c
Previous file: linux/net/ipv4/igmp.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Thu Apr 12 12:11:39 2001
- Orig file:
v2.4.3/linux/net/ipv4/ip_forward.c
- Orig date:
Fri Oct 27 11:03:14 2000
diff -u --recursive --new-file v2.4.3/linux/net/ipv4/ip_forward.c linux/net/ipv4/ip_forward.c
@@ -5,7 +5,7 @@
*
* The IP forwarding functionality.
*
- * Version: $Id: ip_forward.c,v 1.47 2000/10/24 22:54:26 davem Exp $
+ * Version: $Id: ip_forward.c,v 1.48 2000/12/13 18:31:48 davem Exp $
*
* Authors: see ip.c
*
@@ -83,6 +83,8 @@
if (skb->pkt_type != PACKET_HOST)
goto drop;
+
+ skb->ip_summed = CHECKSUM_NONE;
/*
* According to the RFC, we must first decrease the TTL field. If
@@ -116,10 +118,9 @@
ip_rt_send_redirect(skb);
/* We are about to mangle packet. Copy it! */
- if ((skb = skb_cow(skb, dev2->hard_header_len)) == NULL)
- return NET_RX_DROP;
+ if (skb_cow(skb, dev2->hard_header_len))
+ goto drop;
iph = skb->nh.iph;
- opt = &(IPCB(skb)->opt);
/* Decrease ttl after skb cow done */
ip_decrease_ttl(iph);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)