diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-03 21:12:03 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-03 21:51:36 +0100 |
commit | 4166458a2a6c4b779bc238ee3d2e555cee1bc416 (patch) | |
tree | fa412a28a457f50b1f7543e90e9e154cf08ba038 /print-hncp.c | |
parent | c027ae2601efb06315f23d78e836e0deddbc3e39 (diff) | |
download | tcpdump-4166458a2a6c4b779bc238ee3d2e555cee1bc416.tar.gz |
Use more the EXTRACT_U_1() macro (46/n)
In: if (... p[n] ...) ...
Diffstat (limited to 'print-hncp.c')
-rw-r--r-- | print-hncp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-hncp.c b/print-hncp.c index 559c7032..e459dc76 100644 --- a/print-hncp.c +++ b/print-hncp.c @@ -207,7 +207,7 @@ print_prefix(netdissect_options *ndo, const u_char *prefix, u_int max_length) int plenbytes; char buf[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx::/128")]; - if (prefix[0] >= 96 && max_length >= IPV4_MAPPED_HEADING_LEN + 1 && + if (EXTRACT_U_1(prefix) >= 96 && max_length >= IPV4_MAPPED_HEADING_LEN + 1 && is_ipv4_mapped_address(prefix + 1)) { struct in_addr addr; u_int plen; |