Fix endianness issue in ping6
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 2 Sep 2006 16:11:44 +0000 (16:11 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 2 Sep 2006 16:11:44 +0000 (16:11 -0000)
networking/ping6.c

index 767aafd2a91b76eb1b791d0e7def276e6005cc8d..fd695f1fc2c4175ba7d104982277dbf9a423b026 100644 (file)
@@ -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);