diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-10-04 15:55:47 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-10-04 15:56:22 +0200 |
commit | d7a661b5d3e76f60388b1a24c0d1c8c0b4969662 (patch) | |
tree | 064f82adff34360f9911f97d4c7f33e4a2a14b03 | |
parent | ea0d29f7436f5a919d16009790c9b38c2c86e96f (diff) | |
download | tcpdump-d7a661b5d3e76f60388b1a24c0d1c8c0b4969662.tar.gz |
frag6: Remove a ND_TCHECK_SIZE() call
It was the last ND_TCHECK_*() call.
Remove the only trunc label.
-rw-r--r-- | print-frag6.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/print-frag6.c b/print-frag6.c index 818cce2a..d771b4d7 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -42,8 +42,6 @@ frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) dp = (const struct ip6_frag *)bp; ip6 = (const struct ip6_hdr *)bp2; - ND_TCHECK_SIZE(dp); - if (ndo->ndo_vflag) { ND_PRINT("frag (0x%08x:%u|%u)", GET_BE_U_4(dp->ip6f_ident), @@ -65,7 +63,4 @@ frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) ND_PRINT(" "); return sizeof(struct ip6_frag); } -trunc: - nd_print_trunc(ndo); - return -1; } |