diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-05-14 14:01:57 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-05-14 14:17:35 +0200 |
commit | e8d0325a5b85e027aff1cf0f3636cf7f66d74f82 (patch) | |
tree | edcb7f6e97e66f0462cc749141eabbd1618bf6a9 | |
parent | f4780fb4246a57774a0917c5dcd2fd4f727e6456 (diff) | |
download | tcpdump-e8d0325a5b85e027aff1cf0f3636cf7f66d74f82.tar.gz |
VTP: Update two error messages
This change will avoid having the keyword "invalid" twice as:
[invalid MgmtD Len nnn] (invalid)
and
(invalid TLV length nnn != 1) (invalid)
-rw-r--r-- | print-vtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-vtp.c b/print-vtp.c index bcee64cf..1637db66 100644 --- a/print-vtp.c +++ b/print-vtp.c @@ -148,7 +148,7 @@ vtp_print(netdissect_options *ndo, ND_PRINT("\n\tDomain name: "); mgmtd_len = GET_U_1(tptr + 3); if (mgmtd_len < 1 || mgmtd_len > VTP_DOMAIN_NAME_LEN) { - ND_PRINT(" [invalid MgmtD Len %u]", mgmtd_len); + ND_PRINT(" [MgmtD Len %u]", mgmtd_len); goto invalid; } nd_printjnp(ndo, tptr + 4, mgmtd_len); @@ -300,7 +300,7 @@ vtp_print(netdissect_options *ndo, * in units of 16-bit words. */ if (tlv_len != 1) { - ND_PRINT(" (invalid TLV length %u != 1)", tlv_len); + ND_PRINT(" [TLV length %u != 1]", tlv_len); goto invalid; } else { tlv_value = GET_BE_U_2(tptr + 2); |