diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-04-30 22:13:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-30 17:51:42 -0700 |
commit | 2c28ae48f24d84fcda31fb8acaf2edca6ec46c49 (patch) | |
tree | d23c449f1dc7fd350bf8256419ee25e4d7c18dc1 /include/net | |
parent | c7721c05a6217491810f406ec28df80a9bcf3546 (diff) | |
download | linux-2c28ae48f24d84fcda31fb8acaf2edca6ec46c49.tar.gz linux-2c28ae48f24d84fcda31fb8acaf2edca6ec46c49.tar.bz2 linux-2c28ae48f24d84fcda31fb8acaf2edca6ec46c49.zip |
netlink: factor out policy range helpers
Add helpers to get the policy's signed/unsigned range
validation data.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netlink.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index 4d4a733f1e8d..557b67f1db99 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -1928,4 +1928,9 @@ static inline bool nla_is_last(const struct nlattr *nla, int rem) return nla->nla_len == rem; } +void nla_get_range_unsigned(const struct nla_policy *pt, + struct netlink_range_validation *range); +void nla_get_range_signed(const struct nla_policy *pt, + struct netlink_range_validation_signed *range); + #endif |