diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-24 17:43:35 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-13 21:55:18 +0100 |
commit | 5a6d43eb15b537e525d724c9fb3400031ae14c70 (patch) | |
tree | 2824757f1016582eb74fc83bf06989b142cb627b /src/uapi.h | |
parent | main: add `wg` type alias (diff) | |
download | wireguard-monolithic-historical-5a6d43eb15b537e525d724c9fb3400031ae14c70.tar.xz wireguard-monolithic-historical-5a6d43eb15b537e525d724c9fb3400031ae14c70.zip |
socket: enable setting of fwmark
Diffstat (limited to '')
-rw-r--r-- | src/uapi.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ }; }; |