libdnet
libdnet copied to clipboard
Update icmp.h
here too the fields are incorrectly sized, you can understand even by the htons function in the icmp_pack_hdr_mask macro.
Likewise to #101 - I think it's uint32 because of ICMPv6, but maybe I'm missing something.
Likewise to #101 - I think it's uint32 because of ICMPv6, but maybe I'm missing something.
Yes, likewise, 16bit are enough.
In ICMPv6 there is no query mask. And in icmp4 its id and seq fields are 16 bits. In RFC 590 it is not written directly, but by the ASCII art of the header, you can see that the size of these fields is 16 bits.
To prove it I can attach screenshots from wireshark, where you can see that this message has everything as I say,
https://i.imgur.com/NVYUKJi.png https://i.imgur.com/5VUcXBS.png