sipcapture / hep-c

HEP: C implementation of HEP/EEP Encapsulation Protocol
http://sipcapture.org
Other
6 stars 5 forks source link

Fix IPv6 chunk.length warnings for FreeBSD #1

Closed Kaian closed 8 years ago

Kaian commented 8 years ago

Originally reported at irontec/sngrep#91

According to the header file, all chunk lengths are u_int16_t so both IPv4 and IPv6 structure generic fields should be filled the same way.

Also sizeof returns size_t (that can be more than 16 bits) so maybe the assigment of length may produce different values based on the endianess of the system, but this is something I can not test.

adubovikov commented 8 years ago

Thank you!