summaryrefslogtreecommitdiffhomepage
path: root/src/uapi/wireguard.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:06:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:14:52 +0200
commit021084071d57c47c9aabe9c3fcd9be8fd870fa0e (patch)
tree5d48ead1862468d702c65c487bb21852dcf1a95e /src/uapi/wireguard.h
parentac7840ec9cbd876415c0d90167f4d601d7ebacd9 (diff)
netlink: do not stuff index into nla type
It's not used for anything, and LKML doesn't like the type being used as an index value. Suggested-by: Eugene Syromiatnikov <esyr@redhat.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/uapi/wireguard.h')
-rw-r--r--src/uapi/wireguard.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uapi/wireguard.h b/src/uapi/wireguard.h
index ab72766..0203f2c 100644
--- a/src/uapi/wireguard.h
+++ b/src/uapi/wireguard.h
@@ -43,13 +43,13 @@
* WGALLOWEDIP_A_FAMILY: NLA_U16
* WGALLOWEDIP_A_IPADDR: struct in_addr or struct in6_addr
* WGALLOWEDIP_A_CIDR_MASK: NLA_U8
- * 1: NLA_NESTED
+ * 0: NLA_NESTED
* ...
- * 2: NLA_NESTED
+ * 0: NLA_NESTED
* ...
* ...
* WGPEER_A_PROTOCOL_VERSION: NLA_U32
- * 1: NLA_NESTED
+ * 0: NLA_NESTED
* ...
* ...
*
@@ -99,9 +99,9 @@
* WGALLOWEDIP_A_FAMILY: NLA_U16
* WGALLOWEDIP_A_IPADDR: struct in_addr or struct in6_addr
* WGALLOWEDIP_A_CIDR_MASK: NLA_U8
- * 1: NLA_NESTED
+ * 0: NLA_NESTED
* ...
- * 2: NLA_NESTED
+ * 0: NLA_NESTED
* ...
* ...
* WGPEER_A_PROTOCOL_VERSION: NLA_U32, should not be set or used at
@@ -109,7 +109,7 @@
* most recent protocol will be used when
* this is unset. Otherwise, must be set
* to 1.
- * 1: NLA_NESTED
+ * 0: NLA_NESTED
* ...
* ...
*