patch-1.3.10 linux/net/ipv4/icmp.c

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

diff -u --recursive --new-file v1.3.9/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -33,7 +33,7 @@
  *		Peter Belding	:	Tightened up ICMP redirect handling
  *		Alan Cox	:	Tightened even more.
  *		Arnt Gulbrandsen:	Misplaced #endif with net redirect and break
- *
+ *		A.N.Kuznetsov	:	ICMP timestamp still used skb+1
  * 
  *
  *		This program is free software; you can redistribute it and/or
@@ -544,7 +544,7 @@
 	 *	Build ICMP_TIMESTAMP Response message. 
 	 */
 
-	icmphr = (struct icmphdr *) ((char *) (skb2 + 1) + offset);
+	icmphr = (struct icmphdr *) (skb2->data + offset);
 	memcpy((char *) icmphr, (char *) icmph, 12);
 	icmphr->type = ICMP_TIMESTAMPREPLY;
 	icmphr->code = icmphr->checksum = 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