summaryrefslogtreecommitdiff
path: root/print-ip6.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-24 22:48:55 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-24 22:48:55 +0100
commit39c8c55aa9ff84244cf558b9a957b78933babf0a (patch)
treed1f013767035c78b78a987cea509567603ab7783 /print-ip6.c
parentc511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff)
downloadtcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz
Use more ND_TCHECK_n()/ND_TTEST_n() macros
Diffstat (limited to 'print-ip6.c')
-rw-r--r--print-ip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ip6.c b/print-ip6.c
index e13b365a..237c36d4 100644
--- a/print-ip6.c
+++ b/print-ip6.c
@@ -76,7 +76,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst,
* the header, in units of 8 octets, excluding
* the first 8 octets.
*/
- ND_TCHECK2(*cp, 2);
+ ND_TCHECK_2(cp);
advance = (EXTRACT_U_1(cp + 1) + 1) << 3;
nh = *cp;
break;
@@ -87,7 +87,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst,
* marked as reserved, and the header is always
* the same size.
*/
- ND_TCHECK2(*cp, 1);
+ ND_TCHECK_1(cp);
advance = sizeof(struct ip6_frag);
nh = *cp;
break;