summaryrefslogtreecommitdiff
path: root/print-llc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-04-18 10:51:17 -0700
committerGuy Harris <guy@alum.mit.edu>2015-04-18 10:51:17 -0700
commit9d146b98d7e828def2eda555a093c3dd24379b40 (patch)
tree8f14535002af8fc71f1b7e2b71f9ca7ebda464b5 /print-llc.c
parent5170957d27cfb81694989a6c061440ec0bb314c9 (diff)
downloadtcpdump-9d146b98d7e828def2eda555a093c3dd24379b40.tar.gz
Skip the LLC header after printing information for it.
No effect on behavior, but looks a bit nicer.
Diffstat (limited to 'print-llc.c')
-rw-r--r--print-llc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/print-llc.c b/print-llc.c
index 3839240a..1398e996 100644
--- a/print-llc.c
+++ b/print-llc.c
@@ -230,13 +230,6 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
dsap = dsap_field & ~LLC_IG;
ssap = ssap_field & ~LLC_GSAP;
- /*
- * Skip LLC header.
- */
- p += hdrlen;
- length -= hdrlen;
- caplen -= hdrlen;
-
if (ndo->ndo_eflag) {
ND_PRINT((ndo, "LLC, dsap %s (0x%02x) %s, ssap %s (0x%02x) %s",
tok2str(llc_values, "Unknown", dsap),
@@ -253,6 +246,13 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
}
}
+ /*
+ * Skip LLC header.
+ */
+ p += hdrlen;
+ length -= hdrlen;
+ caplen -= hdrlen;
+
if (ssap == LLCSAP_SNAP && dsap == LLCSAP_SNAP
&& control == LLC_UI) {
/*