]> The Tcpdump Group git mirrors - tcpdump/commitdiff
LLDP: print packet protocol at all verbosity levels
authorRomain Francoise <[email protected]>
Sat, 30 Jun 2012 19:42:41 +0000 (12:42 -0700)
committerGuy Harris <[email protected]>
Sat, 30 Jun 2012 19:42:41 +0000 (12:42 -0700)
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

index 8735e58ceef980e1793401f2acf9cd20b4667216..377f2cdedfa7f2edd66fb74ea2fb7c861109e5df 100644 (file)
@@ -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)) {