summaryrefslogtreecommitdiffhomepage
path: root/src/uapi.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-01-24 17:43:35 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-02-13 21:55:18 +0100
commitbdc0caee9cf2dfa40f46d0e96f9c944463d77830 (patch)
treee804e8ac7f2537c73117b5c785da752254e96c0f /src/uapi.h
parent95507a57344431b890c12f3132a019f31d824b01 (diff)
socket: enable setting of fwmark
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/uapi.h')
-rw-r--r--src/uapi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/uapi.h b/src/uapi.h
index eb8d9d3..9cf9b2c 100644
--- a/src/uapi.h
+++ b/src/uapi.h
@@ -121,7 +121,8 @@ struct wgpeer {
enum {
WGDEVICE_REPLACE_PEERS = (1 << 0),
WGDEVICE_REMOVE_PRIVATE_KEY = (1 << 1),
- WGDEVICE_REMOVE_PRESHARED_KEY = (1 << 2)
+ WGDEVICE_REMOVE_PRESHARED_KEY = (1 << 2),
+ WGDEVICE_REMOVE_FWMARK = (1 << 3)
};
struct wgdevice {
char interface[IFNAMSIZ]; /* Get */
@@ -130,11 +131,12 @@ struct wgdevice {
__u8 public_key[WG_KEY_LEN]; /* Get */
__u8 private_key[WG_KEY_LEN]; /* Get/Set */
__u8 preshared_key[WG_KEY_LEN]; /* Get/Set */
+ __u32 fwmark; /* Get/Set */
__u16 port; /* Get/Set */
union {
__u16 num_peers; /* Get/Set */
- __u64 peers_size; /* Get */
+ __u32 peers_size; /* Get */
};
};