From 577621026df8d4a33a34d4e125f9ec964fc0e53c Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sat, 18 Nov 2017 11:52:52 +0100 Subject: Rename EXTRACT_nBITS() macros to EXTRACT_BE_nBITS() It indicates clearly that these macros are used to extract big-endian integral values. --- print-pppoe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'print-pppoe.c') 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 */ -- cgit v1.2.1