diff options
author | Florian Westphal <fw@strlen.de> | 2022-09-05 12:09:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-07 13:33:43 +0200 |
commit | 08724ef69907214ce622344fe4945412e38368f0 (patch) | |
tree | 5c18735ab7ac018a60c46c9f6b415ec553ea0a89 /crypto | |
parent | Merge branch 'sfc-ptp' (diff) | |
download | linux-08724ef69907214ce622344fe4945412e38368f0.tar.xz linux-08724ef69907214ce622344fe4945412e38368f0.zip |
netlink: introduce NLA_POLICY_MAX_BE
netlink allows to specify allowed ranges for integer types.
Unfortunately, nfnetlink passes integers in big endian, so the existing
NLA_POLICY_MAX() cannot be used.
At the moment, nfnetlink users, such as nf_tables, need to resort to
programmatic checking via helpers such as nft_parse_u32_check().
This is both cumbersome and error prone. This adds NLA_POLICY_MAX_BE
which adds range check support for BE16, BE32 and BE64 integers.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions