Florian Westphal 08724ef699 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>
2022-09-07 12:33:43 +01:00
..
2022-08-11 19:21:03 +02:00
2022-08-04 20:00:14 -07:00
2022-08-04 12:12:54 -07:00
2022-09-07 12:33:43 +01:00
2022-08-06 10:56:45 -07:00
2022-08-13 13:41:48 -07:00
2022-08-01 15:26:40 +02:00
2022-08-11 12:10:08 -07:00