summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2006-09-02 16:11:44 +0000
committerDenis Vlasenko2006-09-02 16:11:44 +0000
commitd53dd3e627d158953c124107dae1c7ca48ca0a55 (patch)
tree54059ef7028ffd31e09a6d8b966b4b34318c2e38
parentbfbc4ebf4045b834ed080e7b6f0ebe2c789fb5f1 (diff)
downloadbusybox-d53dd3e627d158953c124107dae1c7ca48ca0a55.zip
busybox-d53dd3e627d158953c124107dae1c7ca48ca0a55.tar.gz
Fix endianness issue in ping6
-rw-r--r--networking/ping6.c2
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);