summaryrefslogtreecommitdiff
path: root/print-sll.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-07-13 12:10:05 -0700
committerGuy Harris <guy@alum.mit.edu>2018-07-13 12:10:05 -0700
commita04d5026297a95147d927883aa407cd78e5f95a9 (patch)
treee1317440435e693e0140d45c9a72bacd7eca3463 /print-sll.c
parent51c1da63e40e046b6b4620edb1ac1ba8b2707182 (diff)
downloadtcpdump-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.c2
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?