diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-24 04:01:25 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-24 04:44:27 +0100 |
commit | b926c835dd334f30cdee95dbc364edc3bb62e1a2 (patch) | |
tree | 346032c7f4095cb8dae1a1fddaff64c188c210db /src/uapi.h | |
parent | 4fb8ba017d796b9425be42e6ed39c4e24496e89f (diff) |
uapi: add version magic
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/uapi.h')
-rw-r--r-- | src/uapi.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |