diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2020-09-08 16:16:38 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2020-09-08 16:23:56 +0100 |
commit | 2bfa05b9b60c07fd23daf7077a9488fe043a202c (patch) | |
tree | d72a283698ad374990bb3bbed9d90706f89dbf64 | |
parent | e782bd8ca6e739a87d8d22d4f45bce4831426201 (diff) | |
download | tcpdump-2bfa05b9b60c07fd23daf7077a9488fe043a202c.tar.gz |
Remove 7 more ND_TCHECK calls.
-rw-r--r-- | print-ahcp.c | 2 | ||||
-rw-r--r-- | print-bgp.c | 1 | ||||
-rw-r--r-- | print-isoclns.c | 4 | ||||
-rw-r--r-- | print-vrrp.c | 1 |
4 files changed, 0 insertions, 8 deletions
diff --git a/print-ahcp.c b/print-ahcp.c index d5b2cc0d..d7bf5ec4 100644 --- a/print-ahcp.c +++ b/print-ahcp.c @@ -373,11 +373,9 @@ ahcp_print(netdissect_options *ndo, const u_char *cp, const u_int len) ND_PRINT(", Nonce 0x%08x", GET_BE_U_4(cp)); cp += 4; /* Source Id */ - ND_TCHECK_8(cp); ND_PRINT(", Source Id %s", GET_LINKADDR_STRING(cp, LINKADDR_OTHER, 8)); cp += 8; /* Destination Id */ - ND_TCHECK_8(cp); ND_PRINT(", Destination Id %s", GET_LINKADDR_STRING(cp, LINKADDR_OTHER, 8)); cp += 8; } diff --git a/print-bgp.c b/print-bgp.c index 713e1592..ab3e2835 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -2193,7 +2193,6 @@ bgp_attr_print(netdissect_options *ndo, case (AFNUM_NSAP<<8 | SAFNUM_UNICAST): case (AFNUM_NSAP<<8 | SAFNUM_MULTICAST): case (AFNUM_NSAP<<8 | SAFNUM_UNIMULTICAST): - ND_TCHECK_LEN(tptr, tnhlen); ND_PRINT("%s", GET_ISONSAP_STRING(tptr, tnhlen)); tptr += tnhlen; tlen -= tnhlen; diff --git a/print-isoclns.c b/print-isoclns.c index e842a008..44d1aa73 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -1022,8 +1022,6 @@ clnp_print(netdissect_options *ndo, } if (source_address_length > 0) { source_address=(tptr+1); - ND_TCHECK_LEN(source_address, - source_address_length); ND_PRINT("\n\t NSAP address (length %u): %s", source_address_length, GET_ISONSAP_STRING(source_address, source_address_length)); @@ -2891,7 +2889,6 @@ isis_print(netdissect_options *ndo, tlen--; if (tlen < alen) goto tlv_trunc; - ND_TCHECK_LEN(tptr, alen); ND_PRINT("\n\t Area address (length: %u): %s", alen, GET_ISONSAP_STRING(tptr, alen)); @@ -3459,7 +3456,6 @@ isis_print(netdissect_options *ndo, } if (tlen < prefix_len/2) break; - ND_TCHECK_LEN(tptr, prefix_len / 2); ND_PRINT("\n\t\tAddress: %s/%u", GET_ISONSAP_STRING(tptr, prefix_len / 2), prefix_len * 4); tptr+=prefix_len/2; diff --git a/print-vrrp.c b/print-vrrp.c index 49f42480..972a8cd7 100644 --- a/print-vrrp.c +++ b/print-vrrp.c @@ -120,7 +120,6 @@ vrrp_print(netdissect_options *ndo, if (version < 2 || version > 3 || type != VRRP_TYPE_ADVERTISEMENT) return; ND_PRINT(", vrid %u, prio %u", GET_U_1(bp + 1), GET_U_1(bp + 2)); - ND_TCHECK_1(bp + 5); if (version == 2) { auth_type = GET_U_1(bp + 4); |