diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2010-04-28 10:30:47 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2010-04-28 10:30:47 -0700 |
commit | 6c62481f944efebc79f552c6fee1a71a23ebde28 (patch) | |
tree | e083e0b9a636d04e63ee5859b8fa2c38c0f832eb | |
parent | 6953cae7a4590156d4c7a523eeb58d33120e16b8 (diff) | |
download | libnet-6c62481f944efebc79f552c6fee1a71a23ebde28.tar.gz |
Visual C++ compiler(v9.0) uses bitfield type as a hint to pad the bitfield, so struct was too long.
-rw-r--r-- | libnet/include/libnet/libnet-headers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnet/include/libnet/libnet-headers.h b/libnet/include/libnet/libnet-headers.h index 781d850..af7a5df 100644 --- a/libnet/include/libnet/libnet-headers.h +++ b/libnet/include/libnet/libnet-headers.h @@ -659,11 +659,11 @@ struct libnet_gre_sre_hdr struct libnet_ipv4_hdr { #if (LIBNET_LIL_ENDIAN) - unsigned ip_hl:4, /* header length */ + uint8_t ip_hl:4, /* header length */ ip_v:4; /* version */ #endif #if (LIBNET_BIG_ENDIAN) - unsigned ip_v:4, /* version */ + uint8_t ip_v:4, /* version */ ip_hl:4; /* header length */ #endif uint8_t ip_tos; /* type of service */ |