summaryrefslogtreecommitdiff
path: root/print-pppoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-pppoe.c')
-rw-r--r--print-pppoe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-pppoe.c b/print-pppoe.c
index 23d9a238..7ee7c729 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -107,8 +107,8 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length)
pppoe_ver = (pppoe_packet[0] & 0xF0) >> 4;
pppoe_type = (pppoe_packet[0] & 0x0F);
pppoe_code = pppoe_packet[1];
- pppoe_sessionid = EXTRACT_16BITS(pppoe_packet + 2);
- pppoe_length = EXTRACT_16BITS(pppoe_packet + 4);
+ pppoe_sessionid = EXTRACT_BE_16BITS(pppoe_packet + 2);
+ pppoe_length = EXTRACT_BE_16BITS(pppoe_packet + 4);
pppoe_payload = pppoe_packet + PPPOE_HDRLEN;
if (pppoe_ver != 1) {
@@ -142,8 +142,8 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length)
*/
while (tag_type && p < pppoe_payload + pppoe_length) {
ND_TCHECK2(*p, 4);
- tag_type = EXTRACT_16BITS(p);
- tag_len = EXTRACT_16BITS(p + 2);
+ tag_type = EXTRACT_BE_16BITS(p);
+ tag_len = EXTRACT_BE_16BITS(p + 2);
p += 4;
/* p points to tag_value */