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-cnfp.c | |
parent | 6e8e14d7fa7a73e8d42515eed917feff29ce9622 (diff) | |
download | tcpdump-d526e47658b691c4b5ca0d29759d1f67b7fb037b.tar.gz |
Use ND_TTEST_SIZE()/ND_TCHECK_SIZE() macros (1/n)
Diffstat (limited to 'print-cnfp.c')
-rw-r--r-- | print-cnfp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/print-cnfp.c b/print-cnfp.c index 08eb73a1..f0d381ac 100644 --- a/print-cnfp.c +++ b/print-cnfp.c @@ -167,7 +167,7 @@ cnfp_v1_print(netdissect_options *ndo, const u_char *cp) #endif nh = (const struct nfhdr_v1 *)cp; - ND_TCHECK(*nh); + ND_TCHECK_SIZE(nh); ver = EXTRACT_BE_U_2(nh->version); nrecs = EXTRACT_BE_U_4(nh->count); @@ -196,7 +196,7 @@ cnfp_v1_print(netdissect_options *ndo, const u_char *cp) /* * Make sure we have the entire record. */ - ND_TCHECK(*nr); + ND_TCHECK_SIZE(nr); ND_PRINT((ndo, "\n started %u.%03u, last %u.%03u", EXTRACT_BE_U_4(nr->start_time)/1000, EXTRACT_BE_U_4(nr->start_time)%1000, @@ -258,7 +258,7 @@ cnfp_v5_print(netdissect_options *ndo, const u_char *cp) #endif nh = (const struct nfhdr_v5 *)cp; - ND_TCHECK(*nh); + ND_TCHECK_SIZE(nh); ver = EXTRACT_BE_U_2(nh->version); nrecs = EXTRACT_BE_U_4(nh->count); @@ -288,7 +288,7 @@ cnfp_v5_print(netdissect_options *ndo, const u_char *cp) /* * Make sure we have the entire record. */ - ND_TCHECK(*nr); + ND_TCHECK_SIZE(nr); ND_PRINT((ndo, "\n started %u.%03u, last %u.%03u", EXTRACT_BE_U_4(nr->start_time)/1000, EXTRACT_BE_U_4(nr->start_time)%1000, @@ -356,7 +356,7 @@ cnfp_v6_print(netdissect_options *ndo, const u_char *cp) #endif nh = (const struct nfhdr_v6 *)cp; - ND_TCHECK(*nh); + ND_TCHECK_SIZE(nh); ver = EXTRACT_BE_U_2(nh->version); nrecs = EXTRACT_BE_U_4(nh->count); @@ -386,7 +386,7 @@ cnfp_v6_print(netdissect_options *ndo, const u_char *cp) /* * Make sure we have the entire record. */ - ND_TCHECK(*nr); + ND_TCHECK_SIZE(nr); ND_PRINT((ndo, "\n started %u.%03u, last %u.%03u", EXTRACT_BE_U_4(nr->start_time)/1000, EXTRACT_BE_U_4(nr->start_time)%1000, |