diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-26 13:02:48 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-26 15:44:43 +0100 |
commit | 1a90fd99d279d63242419a30ba3e0720872bff75 (patch) | |
tree | b8b631a40f376875b5458bd1ec23d8775c0d266d /print-hncp.c | |
parent | 575188b5bf4fc1c26a2766319fcb7ca57d393868 (diff) | |
download | tcpdump-1a90fd99d279d63242419a30ba3e0720872bff75.tar.gz |
Use more the EXTRACT_U_1() macro (28/n)
In ND_PRINT() macro call(s) (step 7).
p[n] ...
Diffstat (limited to 'print-hncp.c')
-rw-r--r-- | print-hncp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-hncp.c b/print-hncp.c index 1b5ed5d4..b0315722 100644 --- a/print-hncp.c +++ b/print-hncp.c @@ -774,9 +774,9 @@ hncp_print_rec(netdissect_options *ndo, ip_address = format_ip6addr(ndo, value); ND_PRINT((ndo, " IP-Address: %s %c%c%c ", ip_address, - (value[16] & 4) ? 'l' : '-', - (value[16] & 2) ? 'b' : '-', - (value[16] & 1) ? 's' : '-' + (EXTRACT_U_1(value + 16) & 4) ? 'l' : '-', + (EXTRACT_U_1(value + 16) & 2) ? 'b' : '-', + (EXTRACT_U_1(value + 16) & 1) ? 's' : '-' )); len = print_dns_label(ndo, value+17, bodylen-17, 1); if (len < 0) { |