summaryrefslogtreecommitdiff
path: root/print-vxlan.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-11 12:46:51 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-11 22:11:01 +0100
commit84ef17ac0eecb3efc11a63c3f2c578ae78732c02 (patch)
treec62632ddf7ae57a999a89938ecaf8e590bfcc019 /print-vxlan.c
parent264ed29aae3407c1a6816c64813806a077ccebcb (diff)
downloadtcpdump-84ef17ac0eecb3efc11a63c3f2c578ae78732c02.tar.gz
Replace ND_TTEST2()/ND_TCHECK2() macros by macros using pointers (1/n)
ND_TTEST2(var, l) -> ND_TTEST_LEN(p, l) ND_TCHECK2(var, l) -> ND_TCHECK_LEN(p, l)
Diffstat (limited to 'print-vxlan.c')
-rw-r--r--print-vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-vxlan.c b/print-vxlan.c
index b8914fe1..82aec20c 100644
--- a/print-vxlan.c
+++ b/print-vxlan.c
@@ -53,7 +53,7 @@ vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len)
if (len < VXLAN_HDR_LEN)
goto trunc;
- ND_TCHECK2(*bp, VXLAN_HDR_LEN);
+ ND_TCHECK_LEN(bp, VXLAN_HDR_LEN);
flags = EXTRACT_U_1(bp);
bp += 4;