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.
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.