Module Name:    src
Committed By:   riz
Date:           Wed Aug 31 22:05:57 UTC 2011

Modified Files:
        src/sbin/ping6: ping6.c

Log Message:
Remove erroneous seq=ntohs(seq) introduced in rev. 1.74, which caused
icmp_seq numbers to increment by 256 instead of 1 on LE platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sbin/ping6/ping6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/ping6/ping6.c
diff -u src/sbin/ping6/ping6.c:1.75 src/sbin/ping6/ping6.c:1.76
--- src/sbin/ping6/ping6.c:1.75	Sat Aug 27 18:43:24 2011
+++ src/sbin/ping6/ping6.c	Wed Aug 31 22:05:57 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ping6.c,v 1.75 2011/08/27 18:43:24 joerg Exp $	*/
+/*	$NetBSD: ping6.c,v 1.76 2011/08/31 22:05:57 riz Exp $	*/
 /*	$KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $	*/
 
 /*
@@ -77,7 +77,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping6.c,v 1.75 2011/08/27 18:43:24 joerg Exp $");
+__RCSID("$NetBSD: ping6.c,v 1.76 2011/08/31 22:05:57 riz Exp $");
 #endif
 #endif
 
@@ -1201,7 +1201,6 @@
 	memset(icp, 0, sizeof(*icp));
 	icp->icmp6_cksum = 0;
 	seq = ntransmitted++;
-	seq = ntohs(seq);
 	CLR(seq % mx_dup_ck);
 
 	if (options & F_FQDN) {

Reply via email to