Message ID | 20250418021706.1967583-8-kuba@kernel.org (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | netlink: specs: rtnetlink: adjust specs for C codegen | expand |
Jakub Kicinski <kuba@kernel.org> writes: > ns-ip6-target is an indexed-array. Codegen for variable size binary > array would be a bit tedious, tell C that we know the size of these > attributes, since they are IPv6 addrs. > > Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml index 6ab9b876a464..4b51c5b60d95 100644 --- a/Documentation/netlink/specs/rt-link.yaml +++ b/Documentation/netlink/specs/rt-link.yaml @@ -1447,6 +1447,8 @@ protonum: 0 type: indexed-array sub-type: binary display-hint: ipv6 + checks: + exact-len: 16 - name: coupled-control type: u8
ns-ip6-target is an indexed-array. Codegen for variable size binary array would be a bit tedious, tell C that we know the size of these attributes, since they are IPv6 addrs. Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- Documentation/netlink/specs/rt-link.yaml | 2 ++ 1 file changed, 2 insertions(+)