]> The Tcpdump Group git mirrors - tcpdump/commit
RT6: Replace 'struct in6_addr' members type with a 'nd_ipv6' one
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Jan 2018 20:51:01 +0000 (21:51 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 30 Jan 2018 21:17:36 +0000 (22:17 +0100)
commit7755951df76e2d6183005414f6908e5eb5eee335
treec53863fd077ee406a72b4bf5a28abfb855f166fa
parent470c75a397f10d35abb4b6ad4e2841b73d931fe3
RT6: Replace 'struct in6_addr' members type with a 'nd_ipv6' one

In 'struct ip6_hdr', 'struct ip6_rthdr0' and 'struct ip6_srh'.
This avoid some 'undefined-behavior' warnings with clang and option
-fsanitize=undefined enabled.

print-rt6.c:66:3: runtime error: member access within misaligned address
0x61d00001eab6 for type 'const struct ip6_rthdr0', which requires 4 byte
alignment
0x61d00001eab6: note: pointer points here
 00 00 00 04 3a 02  00 01 00 00 00 00 22 00  00 00 00 00 02 10 00 02  00 00 00 00 00 04 80 00  d3 ab
             ^
SUMMARY: AddressSanitizer: undefined-behavior print-rt6.c:66:3 in
ip6.h
print-ip6.c
print-rt6.c