diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2014-03-07 15:46:53 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2014-03-07 15:46:53 +0100 |
commit | 601f0cfe04043ffe9ebcf536cdf26bd1bad91800 (patch) | |
tree | d9c3840e891a22207a693de0fc7207dcda31e368 /print-llc.c | |
parent | 7eafeed0b70bd2176cc0c7b77ea693518bf030cb (diff) | |
download | tcpdump-601f0cfe04043ffe9ebcf536cdf26bd1bad91800.tar.gz |
print-llc: some variables are updated and their new values are never used
Diffstat (limited to 'print-llc.c')
-rw-r--r-- | print-llc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/print-llc.c b/print-llc.c index b21f5428..b9c99632 100644 --- a/print-llc.c +++ b/print-llc.c @@ -282,11 +282,9 @@ llc_print(const u_char *p, u_int length, u_int caplen, if (is_u) { p += 3; length -= 3; - caplen -= 3; } else { p += 4; length -= 4; - caplen -= 4; } netbeui_print(control, p, length); return (1); @@ -340,15 +338,10 @@ llc_print(const u_char *p, u_int length, u_int caplen, length); p += 3; - length -= 3; - caplen -= 3; if ((control & ~LLC_U_POLL) == LLC_XID) { if (*p == LLC_XID_FI) { printf(": %02x %02x", p[1], p[2]); - p += 3; - length -= 3; - caplen -= 3; } } } else { @@ -365,9 +358,6 @@ llc_print(const u_char *p, u_int length, u_int caplen, tok2str(llc_flag_values,"?",(ssap_field & LLC_GSAP) | (control & LLC_IS_POLL)), length); } - p += 4; - length -= 4; - caplen -= 4; } return(1); } |