diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-09-05 21:56:50 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-09-08 14:14:13 +0200 |
commit | aad6ac30ce7904f688226dbc61021ca4f907274f (patch) | |
tree | 76ffb3367a34d7e5225fa1bc0a75aa6406118b6d /print-icmp.c | |
parent | cbe18055349fa44ac8348c56834c32586e0a81ab (diff) | |
download | tcpdump-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-icmp.c')
-rw-r--r-- | print-icmp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/print-icmp.c b/print-icmp.c index 020e433e..59b56c6a 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -333,7 +333,6 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * break; case ICMP_UNREACH: - ND_TCHECK_4(dp->icmp_ip.ip_dst); switch (icmp_code) { case ICMP_UNREACH_NET: @@ -481,7 +480,6 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * break; case ICMP_REDIRECT: - ND_TCHECK_4(dp->icmp_ip.ip_dst); switch (icmp_code) { case ICMP_REDIRECT_NET: |