From d53dd3e627d158953c124107dae1c7ca48ca0a55 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 2 Sep 2006 16:11:44 +0000 Subject: Fix endianness issue in ping6 --- networking/ping6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') diff --git a/networking/ping6.c b/networking/ping6.c index 767aafd..fd695f1 100644 --- a/networking/ping6.c +++ b/networking/ping6.c @@ -198,7 +198,7 @@ static void sendping(int junk) 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); -- cgit v1.1