summaryrefslogtreecommitdiff
path: root/print-geneve.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-19 17:59:51 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-19 17:59:51 -0800
commitf411a05060610bd0a047cbae3f2a01db5628fa6c (patch)
tree3bcdb9827c50bf5dd96a2dd93089214333033bb1 /print-geneve.c
parent08ee0b90d80c315264f2a1dba2e5704c30e51e1f (diff)
downloadtcpdump-f411a05060610bd0a047cbae3f2a01db5628fa6c.tar.gz
More EXTRACT_8BITS() changes. Use ND_CHECK_nBITS() more as well.
Diffstat (limited to 'print-geneve.c')
-rw-r--r--print-geneve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-geneve.c b/print-geneve.c
index 7d6014a6..f7054fb5 100644
--- a/print-geneve.c
+++ b/print-geneve.c
@@ -157,7 +157,7 @@ geneve_print(netdissect_options *ndo, const u_char *bp, u_int len)
ND_TCHECK2(*bp, 8);
- ver_opt = *bp;
+ ver_opt = EXTRACT_8BITS(bp);
bp += 1;
len -= 1;
@@ -167,7 +167,7 @@ geneve_print(netdissect_options *ndo, const u_char *bp, u_int len)
return;
}
- flags = *bp;
+ flags = EXTRACT_8BITS(bp);
bp += 1;
len -= 1;
@@ -179,7 +179,7 @@ geneve_print(netdissect_options *ndo, const u_char *bp, u_int len)
bp += 3;
len -= 3;
- reserved = *bp;
+ reserved = EXTRACT_8BITS(bp);
bp += 1;
len -= 1;