Lines Matching full:attribute
18 /* For these data types, attribute length should be exactly the given
20 * attribute length does not match the expected size a warning is emitted
195 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in nla_validate_range_unsigned()
199 "invalid attribute length"); in nla_validate_range_unsigned()
212 "binary attribute size out of range"); in nla_validate_range_unsigned()
377 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in validate_nla()
381 "invalid attribute length"); in validate_nla()
473 * error message/attribute pointer in validate_nla()
480 /* a nested array attribute is allowed to be empty; if its not, in validate_nla()
496 * error message/attribute pointer in validate_nla()
506 "Unsupported attribute"); in validate_nla()
554 "Attribute failed policy validation"); in validate_nla()
582 "Unknown attribute type"); in __nla_validate_parse()
612 * @head: head of attribute stream
613 * @len: length of attribute stream
614 * @maxtype: maximum attribute type to be expected
619 * Validates all attributes in the specified attribute stream against the
667 * @maxtype: maximum attribute type to be expected
668 * @head: head of attribute stream
669 * @len: length of attribute stream
674 * Parses a stream of attributes and stores a pointer to each attribute in
675 * the tb array accessible via the attribute type.
691 * nla_find - Find a specific attribute in a stream of attributes
692 * @head: head of attribute stream
693 * @len: length of attribute stream
694 * @attrtype: type of attribute to look for
696 * Returns the first attribute in the stream matching the specified type.
712 * nla_strscpy - Copy string attribute payload into a sized buffer
714 * @nla: Attribute to copy the string from.
755 * nla_strdup - Copy string attribute payload into a newly allocated buffer
756 * @nla: attribute to copy the string from
779 * nla_memcpy - Copy a netlink attribute into another memory area
781 * @src: netlink attribute to copy from
785 * attribute's payload. memcpy
802 * nla_memcmp - Compare an attribute with sized memory area
803 * @nla: netlink attribute
820 * nla_strcmp - Compare a string attribute against a string
821 * @nla: netlink string attribute
844 * __nla_reserve - reserve room for attribute on the skb
846 * @attrtype: attribute type
847 * @attrlen: length of attribute payload
849 * Adds a netlink attribute header to a socket buffer and reserves
853 * tailroom for the attribute header and payload.
870 * __nla_reserve_64bit - reserve room for attribute on the skb and align it
872 * @attrtype: attribute type
873 * @attrlen: length of attribute payload
874 * @padattr: attribute type for the padding
876 * Adds a netlink attribute header to a socket buffer and reserves
878 * attribute will have a 64-bit aligned nla_data() area.
881 * tailroom for the attribute header and payload.
893 * __nla_reserve_nohdr - reserve room for attribute without header
895 * @attrlen: length of attribute payload
897 * Reserves room for attribute payload without a header.
909 * nla_reserve - reserve room for attribute on the skb
911 * @attrtype: attribute type
912 * @attrlen: length of attribute payload
914 * Adds a netlink attribute header to a socket buffer and reserves
918 * the attribute header and payload.
930 * nla_reserve_64bit - reserve room for attribute on the skb and align it
932 * @attrtype: attribute type
933 * @attrlen: length of attribute payload
934 * @padattr: attribute type for the padding
936 * Adds a netlink attribute header to a socket buffer and reserves
938 * attribute will have a 64-bit aligned nla_data() area.
941 * the attribute header and payload.
960 * nla_reserve_nohdr - reserve room for attribute without header
962 * @attrlen: length of attribute payload
964 * Reserves room for attribute payload without a header.
967 * the attribute payload.
979 * __nla_put - Add a netlink attribute to a socket buffer
980 * @skb: socket buffer to add attribute to
981 * @attrtype: attribute type
982 * @attrlen: length of attribute payload
983 * @data: head of attribute payload
986 * tailroom for the attribute header and payload.
999 * __nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1000 * @skb: socket buffer to add attribute to
1001 * @attrtype: attribute type
1002 * @attrlen: length of attribute payload
1003 * @data: head of attribute payload
1004 * @padattr: attribute type for the padding
1007 * tailroom for the attribute header and payload.
1020 * __nla_put_nohdr - Add a netlink attribute without header
1021 * @skb: socket buffer to add attribute to
1022 * @attrlen: length of attribute payload
1023 * @data: head of attribute payload
1026 * tailroom for the attribute payload.
1038 * nla_put - Add a netlink attribute to a socket buffer
1039 * @skb: socket buffer to add attribute to
1040 * @attrtype: attribute type
1041 * @attrlen: length of attribute payload
1042 * @data: head of attribute payload
1045 * the attribute header and payload.
1058 * nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1059 * @skb: socket buffer to add attribute to
1060 * @attrtype: attribute type
1061 * @attrlen: length of attribute payload
1062 * @data: head of attribute payload
1063 * @padattr: attribute type for the padding
1066 * the attribute header and payload.
1086 * nla_put_nohdr - Add a netlink attribute without header
1087 * @skb: socket buffer to add attribute to
1088 * @attrlen: length of attribute payload
1089 * @data: head of attribute payload
1092 * the attribute payload.
1105 * nla_append - Add a netlink attribute without header or padding
1106 * @skb: socket buffer to add attribute to
1107 * @attrlen: length of attribute payload
1108 * @data: head of attribute payload
1111 * the attribute payload.