Wrong byte order in the sequence number of ICMP echo requests (Little Endian)
Aperta
- Lingua principale
- C
- Stelle
- 1.7k
- Fork
- 364
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In sendicmp.c the sequence number header field of ICMP echo requests is set to _icmp_seq which is a counter. However in little-endian architectures (x86) we need to change the byte order to big-endian so that it meets the network order convention. We can use htons(_icmp_seq) for this.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.