mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
Fix endianness issue in ping6
This commit is contained in:
parent
bfbc4ebf40
commit
d53dd3e627
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user