diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-19 12:54:25 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-19 12:54:25 +0100 |
commit | b9be0f83864ab392c2b1ac25a79aa39c263a7094 (patch) | |
tree | 7bbb88a2925bb22a5a84faabc6e3cff035d5704d /print-eap.c | |
parent | 518768cf72d47710479aab64508dc78422128999 (diff) | |
download | tcpdump-b9be0f83864ab392c2b1ac25a79aa39c263a7094.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (1/n)
In bittok2str() calls.
Diffstat (limited to 'print-eap.c')
-rw-r--r-- | print-eap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-eap.c b/print-eap.c index 886b4f6c..cc115ee6 100644 --- a/print-eap.c +++ b/print-eap.c @@ -240,7 +240,7 @@ eap_print(netdissect_options *ndo, ND_PRINT((ndo, " TTLSv%u", EAP_TTLS_VERSION(*(tptr + 5)))); ND_PRINT((ndo, " flags [%s] 0x%02x,", - bittok2str(eap_tls_flags_values, "none", *(tptr+5)), + bittok2str(eap_tls_flags_values, "none", EXTRACT_8BITS((tptr + 5))), *(tptr + 5))); if (EAP_TLS_EXTRACT_BIT_L(*(tptr+5))) { @@ -254,7 +254,7 @@ eap_print(netdissect_options *ndo, ND_PRINT((ndo, " FASTv%u", EAP_TTLS_VERSION(*(tptr + 5)))); ND_PRINT((ndo, " flags [%s] 0x%02x,", - bittok2str(eap_tls_flags_values, "none", *(tptr+5)), + bittok2str(eap_tls_flags_values, "none", EXTRACT_8BITS((tptr + 5))), *(tptr + 5))); if (EAP_TLS_EXTRACT_BIT_L(*(tptr+5))) { |