diff options
| author | Florian Westphal <[email protected]> | 2022-09-05 12:09:36 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-09-07 12:33:43 +0100 |
| commit | 08724ef69907214ce622344fe4945412e38368f0 (patch) | |
| tree | 5c18735ab7ac018a60c46c9f6b415ec553ea0a89 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 98ba81081b429d147c0230f59a999aa80d0b9d33 (diff) | |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions