diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-27 18:38:56 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-27 20:57:24 +0100 |
commit | f085c93f59fb2332e09f3da20eef5fb2bbd04431 (patch) | |
tree | b3b4364a44ce79355b3e559b1470493e4aaefafc /print-lldp.c | |
parent | 99227bf55234b457b8e5ac39992a6db6db388939 (diff) | |
download | tcpdump-f085c93f59fb2332e09f3da20eef5fb2bbd04431.tar.gz |
Use more the EXTRACT_U_1() macro (31/n)
In ND_PRINT() macro call(s) (step 9).
*(p)
Diffstat (limited to 'print-lldp.c')
-rw-r--r-- | print-lldp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-lldp.c b/print-lldp.c index e8394937..c3bd4bc4 100644 --- a/print-lldp.c +++ b/print-lldp.c @@ -1209,7 +1209,7 @@ lldp_private_dcbx_print(netdissect_options *ndo, } ND_PRINT((ndo, "\n\t Control - Protocol Control (type 0x%x, length %d)", LLDP_DCBX_CONTROL_TLV, tlv_len)); - ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr)); + ND_PRINT((ndo, "\n\t Oper_Version: %d", EXTRACT_U_1(tptr))); ND_PRINT((ndo, "\n\t Max_Version: %d", EXTRACT_U_1(tptr + 1))); ND_PRINT((ndo, "\n\t Sequence Number: %d", EXTRACT_BE_U_4(tptr + 2))); ND_PRINT((ndo, "\n\t Acknowledgement Number: %d", @@ -1221,7 +1221,7 @@ lldp_private_dcbx_print(netdissect_options *ndo, } ND_PRINT((ndo, "\n\t Feature - Priority Group (type 0x%x, length %d)", LLDP_DCBX_PRIORITY_GROUPS_TLV, tlv_len)); - ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr)); + ND_PRINT((ndo, "\n\t Oper_Version: %d", EXTRACT_U_1(tptr))); ND_PRINT((ndo, "\n\t Max_Version: %d", EXTRACT_U_1(tptr + 1))); ND_PRINT((ndo, "\n\t Info block(0x%02X): ", EXTRACT_U_1(tptr + 2))); tval = EXTRACT_U_1(tptr + 2); @@ -1252,7 +1252,7 @@ lldp_private_dcbx_print(netdissect_options *ndo, ND_PRINT((ndo, "\n\t Feature - Priority Flow Control")); ND_PRINT((ndo, " (type 0x%x, length %d)", LLDP_DCBX_PRIORITY_FLOW_CONTROL_TLV, tlv_len)); - ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr)); + ND_PRINT((ndo, "\n\t Oper_Version: %d", EXTRACT_U_1(tptr))); ND_PRINT((ndo, "\n\t Max_Version: %d", EXTRACT_U_1(tptr + 1))); ND_PRINT((ndo, "\n\t Info block(0x%02X): ", EXTRACT_U_1(tptr + 2))); tval = EXTRACT_U_1(tptr + 2); @@ -1273,7 +1273,7 @@ lldp_private_dcbx_print(netdissect_options *ndo, } ND_PRINT((ndo, "\n\t Feature - Application (type 0x%x, length %d)", LLDP_DCBX_APPLICATION_TLV, tlv_len)); - ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr)); + ND_PRINT((ndo, "\n\t Oper_Version: %d", EXTRACT_U_1(tptr))); ND_PRINT((ndo, "\n\t Max_Version: %d", EXTRACT_U_1(tptr + 1))); ND_PRINT((ndo, "\n\t Info block(0x%02X): ", EXTRACT_U_1(tptr + 2))); tval = EXTRACT_U_1(tptr + 2); |