aboutsummaryrefslogtreecommitdiff
path: root/print-lisp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-05 21:56:50 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-08 14:14:13 +0200
commitaad6ac30ce7904f688226dbc61021ca4f907274f (patch)
tree76ffb3367a34d7e5225fa1bc0a75aa6406118b6d /print-lisp.c
parentcbe18055349fa44ac8348c56834c32586e0a81ab (diff)
downloadtcpdump-aad6ac30ce7904f688226dbc61021ca4f907274f.tar.gz
Remove some now redundant ND_TCHECK_4() calls
ND_TCHECK_4(e). They are redundant because they are followed by a GET_IPADDR_STRING(e) call, same e, which do the bounds check. Remove unused 'trunc' labels and associated codes. Update the output of a test accordingly.
Diffstat (limited to 'print-lisp.c')
-rw-r--r--print-lisp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/print-lisp.c b/print-lisp.c
index 27cafb30..6e9cbd14 100644
--- a/print-lisp.c
+++ b/print-lisp.c
@@ -307,7 +307,6 @@ lisp_print(netdissect_options *ndo, const u_char *bp, u_int length)
switch (eid_afi) {
case IPv4_AFI:
- ND_TCHECK_4(packet_iterator + packet_offset);
ND_PRINT(" EID %s/%u,",
GET_IPADDR_STRING(packet_iterator + packet_offset),
mask_len);