diff options
author | Denis Vlasenko | 2006-09-02 16:11:44 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-02 16:11:44 +0000 |
commit | d53dd3e627d158953c124107dae1c7ca48ca0a55 (patch) | |
tree | 54059ef7028ffd31e09a6d8b966b4b34318c2e38 | |
parent | bfbc4ebf4045b834ed080e7b6f0ebe2c789fb5f1 (diff) | |
download | busybox-d53dd3e627d158953c124107dae1c7ca48ca0a55.zip busybox-d53dd3e627d158953c124107dae1c7ca48ca0a55.tar.gz |
Fix endianness issue in ping6
-rw-r--r-- | networking/ping6.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |