summaryrefslogtreecommitdiff
path: root/sys/net/if_vxlan.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-08-07 13:49:13 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-08-07 13:49:13 +0000
commit1b4794518f595d70c00ac676b3588e5263f9ee8b (patch)
tree51da39d2a777e54bf449190ba4df93faac05af64 /sys/net/if_vxlan.h
parent42785e3ddf3f1f39cc6cd1295f648279a2951fdd (diff)
Define VXLAN_VNI_UNSET and VXLAN_VNI_MAX instead of using magic numbers.
No functional change.
Diffstat (limited to 'sys/net/if_vxlan.h')
-rw-r--r--sys/net/if_vxlan.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vxlan.h b/sys/net/if_vxlan.h
index 2e43ccdd0d5..c6ed25b8d66 100644
--- a/sys/net/if_vxlan.h
+++ b/sys/net/if_vxlan.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.h,v 1.9 2016/08/06 14:33:33 reyk Exp $ */
+/* $OpenBSD: if_vxlan.h,v 1.10 2016/08/07 13:49:12 reyk Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -33,6 +33,9 @@ struct vxlan_header {
#define VXLAN_RESERVED2 0x000000ff
} __packed;
+#define VXLAN_VNI_MAX 0x00ffffff /* 24bit vnetid */
+#define VXLAN_VNI_UNSET 0xffffffff /* -1 */
+
struct vxlanudphdr {
struct udphdr vu_u;
struct vxlan_header vu_v;