Lines Matching refs:policy

163   * Standard attribute types to specify validation policy
209 * struct nla_policy - attribute validation policy
229 * number in the nested policy.
247 * NLA_NESTED `nested_policy' to a nested policy to validate, must
252 * NLA_NESTED_ARRAY `nested_policy' points to a nested policy to validate,
332 * only, and specifies special data about the policy, namely it
340 * of this is that types not specified in the policy will be
346 * the enum used by the policy, and be set to the new value that
356 #define _NLA_POLICY_NESTED(maxattr, policy) \
357 { .type = NLA_NESTED, .nested_policy = policy, .len = maxattr }
358 #define _NLA_POLICY_NESTED_ARRAY(maxattr, policy) \
359 { .type = NLA_NESTED_ARRAY, .nested_policy = policy, .len = maxattr }
360 #define NLA_POLICY_NESTED(policy) \
361 _NLA_POLICY_NESTED(ARRAY_SIZE(policy) - 1, policy)
362 #define NLA_POLICY_NESTED_ARRAY(policy) \
363 _NLA_POLICY_NESTED_ARRAY(ARRAY_SIZE(policy) - 1, policy)
469 * @NL_VALIDATE_UNSPEC: Reject attributes with NLA_UNSPEC in the policy.
470 * This can safely be set by the kernel when the given policy has no
471 * NLA_UNSPEC anymore, and can thus be used to ensure policy entries
473 * @NL_VALIDATE_STRICT_ATTRS: strict attribute policy parsing (e.g.
502 const struct nla_policy *policy, unsigned int validate,
505 int len, const struct nla_policy *policy, unsigned int validate,
640 * @policy: validation policy
645 * exceeding maxtype will be rejected, policy must be specified, attributes
652 const struct nla_policy *policy,
655 return __nla_parse(tb, maxtype, head, len, policy,
665 * @policy: validation policy
670 * exceeding maxtype will be ignored and attributes from the policy are not
677 const struct nla_policy *policy,
680 return __nla_parse(tb, maxtype, head, len, policy,
690 * @policy: validation policy
696 * policy is not completely strictly validated (only for new attributes).
703 const struct nla_policy *policy,
706 return __nla_parse(tb, maxtype, head, len, policy,
716 * @policy: validation policy
724 const struct nla_policy *policy,
734 nlmsg_attrlen(nlh, hdrlen), policy, validate,
750 const struct nla_policy *policy,
753 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy,
769 const struct nla_policy *policy,
772 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy,
789 const struct nla_policy *policy,
792 return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy,
816 * @policy: validation policy
821 * specified policy. Validation is done in liberal mode.
828 const struct nla_policy *policy,
831 return __nla_validate(head, len, maxtype, policy, NL_VALIDATE_LIBERAL,
840 * @policy: validation policy
844 * specified policy. Validation is done in strict mode.
850 const struct nla_policy *policy,
853 return __nla_validate(head, len, maxtype, policy, NL_VALIDATE_STRICT,
862 * @policy: validation policy
867 const struct nla_policy *policy,
875 policy, NL_VALIDATE_LIBERAL, extack);
1197 * @policy: validation policy
1204 const struct nla_policy *policy,
1212 return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy,
1221 * @policy: validation policy
1228 const struct nla_policy *policy,
1231 return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy,
1821 * @policy: validation policy
1826 * specified policy. Attributes with a type exceeding maxtype will be
1832 const struct nla_policy *policy,
1836 return __nla_validate(nla_data(start), nla_len(start), maxtype, policy,
1842 const struct nla_policy *policy,
1845 return __nla_validate_nested(start, maxtype, policy,
1851 const struct nla_policy *policy,
1854 return __nla_validate_nested(start, maxtype, policy,
1952 const struct nla_policy *policy,
1955 const struct nla_policy *policy,