svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Sat Sep 2 16:11:45 UTC 2006


Author: vda
Date: 2006-09-02 09:11:44 -0700 (Sat, 02 Sep 2006)
New Revision: 16026

Log:
Fix endianness issue in ping6


Modified:
   trunk/busybox/networking/ping6.c


Changeset:
Modified: trunk/busybox/networking/ping6.c
===================================================================
--- trunk/busybox/networking/ping6.c	2006-09-02 15:30:26 UTC (rev 16025)
+++ trunk/busybox/networking/ping6.c	2006-09-02 16:11:44 UTC (rev 16026)
@@ -198,7 +198,7 @@
 	pkt->icmp6_type = ICMP6_ECHO_REQUEST;
 	pkt->icmp6_code = 0;
 	pkt->icmp6_cksum = 0;
-	pkt->icmp6_seq = ntransmitted++;
+	pkt->icmp6_seq = SWAP_BE16(ntransmitted++);
 	pkt->icmp6_id = myid;
 	CLR(pkt->icmp6_seq % MAX_DUP_CHK);
 




More information about the busybox-cvs mailing list