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>
This commit is contained in:

committed by
David S. Miller

parent
c7721c05a6
commit
2c28ae48f2
@@ -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
|
||||
|
Reference in New Issue
Block a user