ping(6): use htons instead of SWAP_BE.
This commit is contained in:
@@ -209,7 +209,7 @@ static void sendping(int junk)
|
||||
pkt->icmp_type = ICMP_ECHO;
|
||||
pkt->icmp_code = 0;
|
||||
pkt->icmp_cksum = 0;
|
||||
pkt->icmp_seq = SWAP_BE16(ntransmitted++);
|
||||
pkt->icmp_seq = htons(ntransmitted++);
|
||||
pkt->icmp_id = myid;
|
||||
CLR(ntohs(pkt->icmp_seq) % MAX_DUP_CHK);
|
||||
|
||||
|
@@ -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 = SWAP_BE16(ntransmitted++);
|
||||
pkt->icmp6_seq = htons(ntransmitted++);
|
||||
pkt->icmp6_id = myid;
|
||||
CLR(pkt->icmp6_seq % MAX_DUP_CHK);
|
||||
|
||||
|
Reference in New Issue
Block a user