From: Guy Harris Date: Fri, 13 Jul 2018 19:10:05 +0000 (-0700) Subject: In the DLT_LINUX_SLL2 header, the packet type is one octet, not two. X-Git-Tag: tcpdump-4.99-bp~1101 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a04d5026297a95147d927883aa407cd78e5f95a9 In the DLT_LINUX_SLL2 header, the packet type is one octet, not two. --- diff --git a/print-sll.c b/print-sll.c index 5a4e2f68..96031442 100644 --- a/print-sll.c +++ b/print-sll.c @@ -330,7 +330,7 @@ sll2_print(netdissect_options *ndo, const struct sll2_header *sllp, u_int length u_short ether_type; ndo->ndo_protocol = "sll2"; - ND_PRINT("%3s ",tok2str(sll_pkttype_values,"?",EXTRACT_BE_U_2(sllp->sll2_pkttype))); + ND_PRINT("%3s ",tok2str(sll_pkttype_values,"?",EXTRACT_U_1(sllp->sll2_pkttype))); /* * XXX - check the link-layer address type value?