diff options
author | Bin Jin <bjin@ctrl-d.org> | 2017-03-25 13:03:46 +0800 |
---|---|---|
committer | Bin Jin <bjin@ctrl-d.org> | 2017-03-25 13:03:46 +0800 |
commit | 7fd21834651604ccec0c862df8e3bb3c5f0d370d (patch) | |
tree | 1896cf3204c827c318fc85cad0f39f03dc3ec77b /include | |
parent | Warn users, due to already incoming emails (diff) | |
download | wireguard-hs-7fd21834651604ccec0c862df8e3bb3c5f0d370d.tar.xz wireguard-hs-7fd21834651604ccec0c862df8e3bb3c5f0d370d.zip |
uapi: upstream change
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi.h b/include/uapi.h index 9cf9b2c..130f30a 100644 --- a/include/uapi.h +++ b/include/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 */ |