]> The Tcpdump Group git mirrors - tcpdump/commit
IPX: Use more the nd_uint32_t type
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Jan 2018 18:03:49 +0000 (19:03 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Jan 2018 19:13:15 +0000 (20:13 +0100)
commit470c75a397f10d35abb4b6ad4e2841b73d931fe3
tree24c141aa25a536944801568b32107fcfc41b9426
parentaa9960a2c3d98c38d385c10e54d9160cb89feba0
IPX: Use more the nd_uint32_t type

In 'struct ipxHdr'.
This avoid some 'undefined-behavior' warnings with clang and option
-fsanitize=undefined enabled.

print-ipx.c:79:2: runtime error: member access within misaligned address
0x61d00001ea91 for type 'const struct ipxHdr', which requires 2 byte alignment
0x61d00001ea91: note: pointer points here
 54 e0 e0  03 ff ff 00 50 00 14 00  00 00 00 ff ff ff ff ff  ff 04 55 a8 f8 79 67 00  00 00 00 00 01
              ^
SUMMARY: AddressSanitizer: undefined-behavior print-ipx.c:79:2 in
print-ipx.c