projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfbc4eb
)
Fix endianness issue in ping6
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 2 Sep 2006 16:11:44 +0000
(16:11 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 2 Sep 2006 16:11:44 +0000
(16:11 -0000)
networking/ping6.c
patch
|
blob
|
history
diff --git
a/networking/ping6.c
b/networking/ping6.c
index 767aafd2a91b76eb1b791d0e7def276e6005cc8d..fd695f1fc2c4175ba7d104982277dbf9a423b026 100644
(file)
--- 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);