summaryrefslogtreecommitdiff
path: root/print-pppoe.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-pppoe.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-pppoe.c')
-rw-r--r--print-pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-pppoe.c b/print-pppoe.c
index 74ebcbc7..39d41700 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -175,7 +175,7 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length)
/* Print hex, not fast to abuse printf but this doesn't get used much */
ND_PRINT((ndo, " [%s 0x", tok2str(pppoetag2str, "TAG-0x%x", tag_type)));
for (v=p; v<p+tag_len; v++) {
- ND_PRINT((ndo, "%02X", *v));
+ ND_PRINT((ndo, "%02X", EXTRACT_U_1(v)));
}
ND_PRINT((ndo, "]"));
}