summaryrefslogtreecommitdiff
path: root/print-geonet.c
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2020-09-08 05:04:58 +0100
committerDenis Ovsienko <denis@ovsienko.info>2020-09-08 05:04:58 +0100
commit51e180c4fb05a88ad6687a23cc983955cd9ea431 (patch)
tree3bfe3b338b58f8ef556cd039e3443153635e7fce /print-geonet.c
parent24df77f09e26a72f662a82b92645707e0572d1cc (diff)
downloadtcpdump-51e180c4fb05a88ad6687a23cc983955cd9ea431.tar.gz
Remove 96 assorted ND_TCHECK calls.
Remove a number of instances that do not match common patterns and have the only substantial effect on the code flow that a truncated packet triggers "goto trunc" instead of longjmp(). (In a few cases this change can increase the number of fields printed before giving up.)
Diffstat (limited to 'print-geonet.c')
-rw-r--r--print-geonet.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/print-geonet.c b/print-geonet.c
index 8efc9b51..bd2fa056 100644
--- a/print-geonet.c
+++ b/print-geonet.c
@@ -88,17 +88,13 @@ print_long_pos_vector(netdissect_options *ndo,
{
uint32_t lat, lon;
- ND_TCHECK_LEN(bp, GEONET_ADDR_LEN);
ND_PRINT("GN_ADDR:%s ", GET_LINKADDR_STRING(bp, LINKADDR_OTHER, GEONET_ADDR_LEN));
- ND_TCHECK_8(bp + 12);
lat = GET_BE_U_4(bp + 12);
ND_PRINT("lat:%u ", lat);
lon = GET_BE_U_4(bp + 16);
ND_PRINT("lon:%u", lon);
return (0);
-trunc:
- return -1;
}