]> The Tcpdump Group git mirrors - tcpdump/commitdiff
In the DLT_LINUX_SLL2 header, the packet type is one octet, not two.
authorGuy Harris <[email protected]>
Fri, 13 Jul 2018 19:10:05 +0000 (12:10 -0700)
committerGuy Harris <[email protected]>
Fri, 13 Jul 2018 19:10:05 +0000 (12:10 -0700)
print-sll.c

index 5a4e2f687031d62c423ad56b75cb85ba2ef308d9..960314427de9b43bb52c0132888a2e17cfdeeb78 100644 (file)
@@ -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?