diff options
author | Antonio Quartulli <antonio@openvpn.net> | 2024-10-29 11:47:14 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-01 03:10:52 +0100 |
commit | 4138e9ec00936c9fe7d0fe961e32f381b1e36926 (patch) | |
tree | a5874f249e82cf137fe39de2cf63c3bab73183fd /include/net/netlink.h | |
parent | fsl/fman: Validate cell-index value obtained from Device Tree (diff) | |
download | linux-4138e9ec00936c9fe7d0fe961e32f381b1e36926.tar.xz linux-4138e9ec00936c9fe7d0fe961e32f381b1e36926.zip |
netlink: add NLA_POLICY_MAX_LEN macro
Similarly to NLA_POLICY_MIN_LEN, NLA_POLICY_MAX_LEN defines a policy
with a maximum length value.
The netlink generator for YAML specs has been extended accordingly.
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20241029-b4-ovpn-v11-1-de4698c73a25@openvpn.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index db6af207287c..2dc671c977ff 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -469,6 +469,7 @@ struct nla_policy { .max = _len \ } #define NLA_POLICY_MIN_LEN(_len) NLA_POLICY_MIN(NLA_BINARY, _len) +#define NLA_POLICY_MAX_LEN(_len) NLA_POLICY_MAX(NLA_BINARY, _len) /** * struct nl_info - netlink source information |