summaryrefslogtreecommitdiff
path: root/print-ipx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-30 15:51:20 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-30 16:38:48 +0100
commitaa9960a2c3d98c38d385c10e54d9160cb89feba0 (patch)
treec30a1db530c9d83ddfce03cfcac9b0da1afe8a2c /print-ipx.c
parentfbe65c7e385eb914cc86ea3e1cf278f4179203b2 (diff)
downloadtcpdump-aa9960a2c3d98c38d385c10e54d9160cb89feba0.tar.gz
ICMP: Replace a 'struct in_addr' member type with a 'nd_ipv4' one
In 'struct icmp'. This avoid some 'undefined-behavior' warnings with clang and option -fsanitize=undefined enabled. Moreover: Remove unneeded '&' when getting a pointer to a nd_ipv4 type. Fix indentation. The warnings were like: print-icmp.c:355:2: runtime error: member access within misaligned address 0x61d00001eabe for type 'const struct icmp', which requires 4 byte alignment 0x61d00001eabe: note: pointer points here ef 01 02 03 08 00 90 e1 00 03 00 00 00 00 00 00 00 05 ed 60 ab cd ab cd ab cd ab cd ab cd ab cd ^ SUMMARY: AddressSanitizer: undefined-behavior print-icmp.c:355:2 in
Diffstat (limited to 'print-ipx.c')
0 files changed, 0 insertions, 0 deletions