diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:56:29 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-09 09:56:29 +0100 |
commit | 3a7639e545c0543bcec19c4321dd3ba397fbe6fa (patch) | |
tree | 44decbbcb2ea9fd9aff7d0b86a4698a2b74a4fea /print-vxlan-gpe.c | |
parent | 58010245a5c050e543862c068d1f182fc70623c7 (diff) | |
download | tcpdump-3a7639e545c0543bcec19c4321dd3ba397fbe6fa.tar.gz |
Use more the EXTRACT_U_1() macro (49/n)
Assignment, *(p)
Diffstat (limited to 'print-vxlan-gpe.c')
-rw-r--r-- | print-vxlan-gpe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-vxlan-gpe.c b/print-vxlan-gpe.c index 71c517ba..2a195165 100644 --- a/print-vxlan-gpe.c +++ b/print-vxlan-gpe.c @@ -69,10 +69,10 @@ vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) ND_TCHECK2(*bp, VXLAN_GPE_HDR_LEN); - flags = *bp; + flags = EXTRACT_U_1(bp); bp += 3; - next_protocol = *bp; + next_protocol = EXTRACT_U_1(bp); bp += 1; vni = EXTRACT_BE_U_3(bp); |