patch-1.3.18 linux/net/ipv4/ip.c

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

diff -u --recursive --new-file v1.3.17/linux/net/ipv4/ip.c linux/net/ipv4/ip.c
@@ -87,6 +87,7 @@
  *		Alan Cox	:	Fixed multicast (by popular demand 8))
  *		Alan Cox	:	Fixed forwarding (by even more popular demand 8))
  *		Alan Cox	:	Fixed SNMP statistics [I think]
+ *	Gerhard Koerting	:	IP fragmentation forwarding fix
  *
  *  
  *
@@ -987,6 +988,7 @@
 		 */
 		iph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
 		iph->frag_off = htons((offset >> 3));
+		skb2->ip_hdr = iph;
 		/*
 		 *	Added AC : If we are fragmenting a fragment thats not the
 		 *		   last fragment then keep MF on each bit
@@ -2819,7 +2821,7 @@
 
 #ifdef CONFIG_IP_MULTICAST
 	proc_net_register(&(struct proc_dir_entry)
-			  { PROC_NET_IGMP,  ip_mc_procinfo,  4,  "igmp"});
+		  { PROC_NET_IGMP, 4, "igmp", ip_mc_procinfo });
 #endif
 }
 

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