tcpdump mailing list archives

[PATCH] LLDP: print packet protocol at all verbosity levels


From: Romain Francoise <rfrancoise () debian org>
Date: Thu, 21 Jun 2012 15:59:46 +0200

The LLDP printer doesn't show the packet protocol unless -v is used,
which results in pretty useless output lines where only the timestamp is
present. Make sure we include the default protocol+length output even in
default mode.
---
 print-lldp.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/print-lldp.c b/print-lldp.c
index 8735e58..377f2cd 100644
--- a/print-lldp.c
+++ b/print-lldp.c
@@ -1184,9 +1184,7 @@ lldp_print(register const u_char *pptr, register u_int len) {
     tptr = pptr;
     tlen = len;
 
-    if (vflag) {
-        printf("LLDP, length %u", len);
-    }
+    printf("LLDP, length %u", len);
 
     while (tlen >= sizeof(tlv)) {
 
-- 
1.7.10

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: