summaryrefslogtreecommitdiff
path: root/print-ospf.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-27 18:38:56 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-27 20:57:24 +0100
commitf085c93f59fb2332e09f3da20eef5fb2bbd04431 (patch)
treeb3b4364a44ce79355b3e559b1470493e4aaefafc /print-ospf.c
parent99227bf55234b457b8e5ac39992a6db6db388939 (diff)
downloadtcpdump-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-ospf.c')
-rw-r--r--print-ospf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-ospf.c b/print-ospf.c
index aaaecf0e..37e829e3 100644
--- a/print-ospf.c
+++ b/print-ospf.c
@@ -231,7 +231,7 @@ ospf_print_grace_lsa(netdissect_options *ndo,
}
ND_PRINT((ndo, "%s (%u)",
tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", EXTRACT_U_1(tptr)),
- *tptr));
+ EXTRACT_U_1(tptr)));
break;
case LS_OPAQUE_GRACE_TLV_INT_ADDRESS:
@@ -383,7 +383,7 @@ ospf_print_te_lsa(netdissect_options *ndo,
/* BC Model Id (1 octet) + Reserved (3 octets) */
ND_PRINT((ndo, "\n\t\tBandwidth Constraints Model ID: %s (%u)",
tok2str(diffserv_te_bc_values, "unknown", EXTRACT_U_1(tptr)),
- *tptr));
+ EXTRACT_U_1(tptr)));
if (subtlv_length % 4 != 0) {
ND_PRINT((ndo, "\n\t\tlength %u != N x 4", subtlv_length));
goto invalid;
@@ -440,7 +440,7 @@ ospf_print_te_lsa(netdissect_options *ndo,
}
ND_PRINT((ndo, ", %s (%u)",
tok2str(lsa_opaque_te_tlv_link_type_sub_tlv_values,"unknown",EXTRACT_U_1(tptr)),
- *tptr));
+ EXTRACT_U_1(tptr)));
break;
case LS_OPAQUE_TE_LINK_SUBTLV_SHARED_RISK_GROUP: