Skip to content

Commit 2bfa05b

Browse files
committed
Remove 7 more ND_TCHECK calls.
1 parent e782bd8 commit 2bfa05b

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

print-ahcp.c

-2
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,9 @@ ahcp_print(netdissect_options *ndo, const u_char *cp, const u_int len)
373373
ND_PRINT(", Nonce 0x%08x", GET_BE_U_4(cp));
374374
cp += 4;
375375
/* Source Id */
376-
ND_TCHECK_8(cp);
377376
ND_PRINT(", Source Id %s", GET_LINKADDR_STRING(cp, LINKADDR_OTHER, 8));
378377
cp += 8;
379378
/* Destination Id */
380-
ND_TCHECK_8(cp);
381379
ND_PRINT(", Destination Id %s", GET_LINKADDR_STRING(cp, LINKADDR_OTHER, 8));
382380
cp += 8;
383381
}

print-bgp.c

-1
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,6 @@ bgp_attr_print(netdissect_options *ndo,
21932193
case (AFNUM_NSAP<<8 | SAFNUM_UNICAST):
21942194
case (AFNUM_NSAP<<8 | SAFNUM_MULTICAST):
21952195
case (AFNUM_NSAP<<8 | SAFNUM_UNIMULTICAST):
2196-
ND_TCHECK_LEN(tptr, tnhlen);
21972196
ND_PRINT("%s", GET_ISONSAP_STRING(tptr, tnhlen));
21982197
tptr += tnhlen;
21992198
tlen -= tnhlen;

print-isoclns.c

-4
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,6 @@ clnp_print(netdissect_options *ndo,
10221022
}
10231023
if (source_address_length > 0) {
10241024
source_address=(tptr+1);
1025-
ND_TCHECK_LEN(source_address,
1026-
source_address_length);
10271025
ND_PRINT("\n\t NSAP address (length %u): %s",
10281026
source_address_length,
10291027
GET_ISONSAP_STRING(source_address, source_address_length));
@@ -2891,7 +2889,6 @@ isis_print(netdissect_options *ndo,
28912889
tlen--;
28922890
if (tlen < alen)
28932891
goto tlv_trunc;
2894-
ND_TCHECK_LEN(tptr, alen);
28952892
ND_PRINT("\n\t Area address (length: %u): %s",
28962893
alen,
28972894
GET_ISONSAP_STRING(tptr, alen));
@@ -3459,7 +3456,6 @@ isis_print(netdissect_options *ndo,
34593456
}
34603457
if (tlen < prefix_len/2)
34613458
break;
3462-
ND_TCHECK_LEN(tptr, prefix_len / 2);
34633459
ND_PRINT("\n\t\tAddress: %s/%u",
34643460
GET_ISONSAP_STRING(tptr, prefix_len / 2), prefix_len * 4);
34653461
tptr+=prefix_len/2;

print-vrrp.c

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ vrrp_print(netdissect_options *ndo,
120120
if (version < 2 || version > 3 || type != VRRP_TYPE_ADVERTISEMENT)
121121
return;
122122
ND_PRINT(", vrid %u, prio %u", GET_U_1(bp + 1), GET_U_1(bp + 2));
123-
ND_TCHECK_1(bp + 5);
124123

125124
if (version == 2) {
126125
auth_type = GET_U_1(bp + 4);

0 commit comments

Comments
 (0)