patch-2.3.35 linux/net/ipv4/icmp.c
Next file: linux/net/ipv4/igmp.c
Previous file: linux/net/ipv4/fib_frontend.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Dec 22 19:55:38 1999
- Orig file:
v2.3.34/linux/net/ipv4/icmp.c
- Orig date:
Tue Aug 31 17:29:15 1999
diff -u --recursive --new-file v2.3.34/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -3,7 +3,7 @@
*
* Alan Cox, <alan@redhat.com>
*
- * Version: $Id: icmp.c,v 1.61 1999/08/31 07:03:33 davem Exp $
+ * Version: $Id: icmp.c,v 1.62 1999/12/23 01:43:37 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -483,7 +483,7 @@
unsigned long csum;
if (offset) {
- icmp_param->csum=csum_partial_copy(icmp_param->data_ptr+offset-sizeof(struct icmphdr),
+ icmp_param->csum=csum_partial_copy_nocheck(icmp_param->data_ptr+offset-sizeof(struct icmphdr),
to, fraglen,icmp_param->csum);
return 0;
}
@@ -493,10 +493,10 @@
* the other fragments first, so that we get the checksum
* for the whole packet here.
*/
- csum = csum_partial_copy((void *)&icmp_param->icmph,
+ csum = csum_partial_copy_nocheck((void *)&icmp_param->icmph,
to, sizeof(struct icmphdr),
icmp_param->csum);
- csum = csum_partial_copy(icmp_param->data_ptr,
+ csum = csum_partial_copy_nocheck(icmp_param->data_ptr,
to+sizeof(struct icmphdr),
fraglen-sizeof(struct icmphdr), csum);
icmph=(struct icmphdr *)to;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)