summaryrefslogtreecommitdiff
path: root/print-dccp.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-dccp.c
parentc511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff)
downloadtcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz
Use more ND_TCHECK_n()/ND_TTEST_n() macros
Diffstat (limited to 'print-dccp.c')
-rw-r--r--print-dccp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-dccp.c b/print-dccp.c
index 0d58d439..e351aeb8 100644
--- a/print-dccp.c
+++ b/print-dccp.c
@@ -245,10 +245,10 @@ static void dccp_print_ack_no(netdissect_options *ndo, const u_char *bp)
uint64_t ackno;
if (DCCPH_X(dh) != 0) {
- ND_TCHECK2(*ackp, 8);
+ ND_TCHECK_8(ackp);
ackno = EXTRACT_BE_U_6(ackp + 2);
} else {
- ND_TCHECK2(*ackp, 4);
+ ND_TCHECK_4(ackp);
ackno = EXTRACT_BE_U_3(ackp + 1);
}