aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/uapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uapi.h')
-rw-r--r--src/uapi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uapi.h b/src/uapi.h
index 9cf9b2c..130f30a 100644
--- a/src/uapi.h
+++ b/src/uapi.h
@@ -124,7 +124,13 @@ enum {
WGDEVICE_REMOVE_PRESHARED_KEY = (1 << 2),
WGDEVICE_REMOVE_FWMARK = (1 << 3)
};
+
+enum {
+ WG_API_VERSION_MAGIC = 0xbeef0001
+};
+
struct wgdevice {
+ __u32 version_magic; /* Must be value of WG_API_VERSION_MAGIC */
char interface[IFNAMSIZ]; /* Get */
__u32 flags; /* Set */