diff options
| author | Florian Westphal <[email protected]> | 2022-09-05 10:09:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-09-07 11:33:43 +0000 |
| commit | 08724ef69907214ce622344fe4945412e38368f0 (patch) | |
| tree | 5c18735ab7ac018a60c46c9f6b415ec553ea0a89 /drivers/usb/cdns3/cdns3-plat.c | |
| parent | Merge branch 'sfc-ptp' (diff) | |
| download | kernel-08724ef69907214ce622344fe4945412e38368f0.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions
