diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-13 12:10:05 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-13 12:10:05 -0700 |
commit | a04d5026297a95147d927883aa407cd78e5f95a9 (patch) | |
tree | e1317440435e693e0140d45c9a72bacd7eca3463 /print-sll.c | |
parent | 51c1da63e40e046b6b4620edb1ac1ba8b2707182 (diff) | |
download | tcpdump-a04d5026297a95147d927883aa407cd78e5f95a9.tar.gz |
In the DLT_LINUX_SLL2 header, the packet type is one octet, not two.
Diffstat (limited to 'print-sll.c')
-rw-r--r-- | print-sll.c | 2 |
1 files changed, 1 insertions, 1 deletions
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? |