[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231215035009.498049-4-liuhangbin@gmail.com>
Date: Fri, 15 Dec 2023 11:50:09 +0800
From: Hangbin Liu <liuhangbin@...il.com>
To: netdev@...r.kernel.org
Cc: Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Hangbin Liu <liuhangbin@...il.com>
Subject: [PATCH net-next 3/3] netlink: specs: use exact-len for IPv6 addr
We should use the exact-len instead of min-len for IPv6 address.
Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
---
Documentation/netlink/specs/fou.yaml | 4 ++--
Documentation/netlink/specs/mptcp.yaml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/netlink/specs/fou.yaml b/Documentation/netlink/specs/fou.yaml
index 0af5ab842c04..d472fd5055bd 100644
--- a/Documentation/netlink/specs/fou.yaml
+++ b/Documentation/netlink/specs/fou.yaml
@@ -52,7 +52,7 @@ attribute-sets:
name: local_v6
type: binary
checks:
- min-len: 16
+ exact-len: 16
-
name: peer_v4
type: u32
@@ -60,7 +60,7 @@ attribute-sets:
name: peer_v6
type: binary
checks:
- min-len: 16
+ exact-len: 16
-
name: peer_port
type: u16
diff --git a/Documentation/netlink/specs/mptcp.yaml b/Documentation/netlink/specs/mptcp.yaml
index 49f90cfb4698..2f694b79c3a7 100644
--- a/Documentation/netlink/specs/mptcp.yaml
+++ b/Documentation/netlink/specs/mptcp.yaml
@@ -223,7 +223,7 @@ attribute-sets:
name: saddr6
type: binary
checks:
- min-len: 16
+ exact-len: 16
-
name: daddr4
type: u32
@@ -232,7 +232,7 @@ attribute-sets:
name: daddr6
type: binary
checks:
- min-len: 16
+ exact-len: 16
-
name: sport
type: u16
--
2.43.0
Powered by blists - more mailing lists