mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-12-02 14:33:29 +08:00
As we're always printing "LLDP, length XXX", don't do it for the system name.
This commit is contained in:
parent
53343822c5
commit
d16e61a7f3
10
print-lldp.c
10
print-lldp.c
@ -1320,14 +1320,8 @@ lldp_print(register const u_char *pptr, register u_int len) {
|
||||
* The system name is also print in non-verbose mode
|
||||
* similar to the CDP printer.
|
||||
*/
|
||||
if (vflag) {
|
||||
printf(": ");
|
||||
safeputs((const char *)tptr, tlv_len);
|
||||
} else {
|
||||
printf("LLDP, name ");
|
||||
safeputs((const char *)tptr, tlv_len);
|
||||
printf(", length %u", len);
|
||||
}
|
||||
printf(": ");
|
||||
safeputs((const char *)tptr, tlv_len);
|
||||
break;
|
||||
|
||||
case LLDP_SYSTEM_DESCR_TLV:
|
||||
|
Loading…
Reference in New Issue
Block a user