[PATCH net-next 02/11] tools: ynl-gen: generate nested array policies
Donald Hunter
donald.hunter at gmail.com
Fri Sep 5 10:53:58 UTC 2025
Asbjørn Sloth Tønnesen <ast at fiberby.net> writes:
> This patch adds support for NLA_POLICY_NESTED_ARRAY() policies.
>
> Example spec (from future wireguard.yaml):
> -
> name: wgpeer
> attributes:
> -
> name: allowedips
> type: indexed-array
> sub-type: nest
> nested-attributes: wgallowedip
>
> yields NLA_POLICY_NESTED_ARRAY(wireguard_wgallowedip_nl_policy).
>
> This doesn't change any currently generated code, as it isn't
> used in any specs currently used for generating code.
>
> Signed-off-by: Asbjørn Sloth Tønnesen <ast at fiberby.net>
Reviewed-by: Donald Hunter <donald.hunter at gmail.com>
More information about the WireGuard
mailing list