diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-03 21:32:07 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-03 21:32:07 +0100 |
commit | d526e47658b691c4b5ca0d29759d1f67b7fb037b (patch) | |
tree | 942b58ab554e7812016cc349cec8ddf4c6a874e1 /print-ip6.c | |
parent | 6e8e14d7fa7a73e8d42515eed917feff29ce9622 (diff) | |
download | tcpdump-d526e47658b691c4b5ca0d29759d1f67b7fb037b.tar.gz |
Use ND_TTEST_SIZE()/ND_TCHECK_SIZE() macros (1/n)
Diffstat (limited to 'print-ip6.c')
-rw-r--r-- | print-ip6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ip6.c b/print-ip6.c index 72297aae..ffc9d50f 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -97,7 +97,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst, * OK, we found it. */ dp = (const struct ip6_rthdr *)cp; - ND_TCHECK(*dp); + ND_TCHECK_SIZE(dp); len = EXTRACT_U_1(dp->ip6r_len); switch (EXTRACT_U_1(dp->ip6r_type)) { @@ -227,7 +227,7 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) ip6 = (const struct ip6_hdr *)bp; - ND_TCHECK(*ip6); + ND_TCHECK_SIZE(ip6); if (length < sizeof (struct ip6_hdr)) { ND_PRINT((ndo, "truncated-ip6 %u", length)); return; |