summaryrefslogtreecommitdiff
path: root/print-pppoe.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 12:32:00 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 14:05:25 +0100
commit07ac438e08e5ffed3539e10d78f1cfc7d221d591 (patch)
tree8e07185c1f646ef08c85bbb7d9a075b32e65272f /print-pppoe.c
parent1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (diff)
downloadtcpdump-07ac438e08e5ffed3539e10d78f1cfc7d221d591.tar.gz
Use more the EXTRACT_U_1() macro (52/n)
Assignment, p[n]
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 652f82ef..9c4fdfa7 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -106,7 +106,7 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length)
ND_TCHECK2(*pppoe_packet, PPPOE_HDRLEN);
pppoe_ver = (pppoe_packet[0] & 0xF0) >> 4;
pppoe_type = (pppoe_packet[0] & 0x0F);
- pppoe_code = pppoe_packet[1];
+ pppoe_code = EXTRACT_U_1(pppoe_packet + 1);
pppoe_sessionid = EXTRACT_BE_U_2(pppoe_packet + 2);
pppoe_length = EXTRACT_BE_U_2(pppoe_packet + 4);
pppoe_payload = pppoe_packet + PPPOE_HDRLEN;