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_strlcpy - Copy string attribute payload into a sized buffer
714 * @nla: attribute to copy the string from
743 * nla_strdup - Copy string attribute payload into a newly allocated buffer
744 * @nla: attribute to copy the string from
767 * nla_memcpy - Copy a netlink attribute into another memory area
769 * @src: netlink attribute to copy from
773 * attribute's payload. memcpy
790 * nla_memcmp - Compare an attribute with sized memory area
791 * @nla: netlink attribute
808 * nla_strcmp - Compare a string attribute against a string
809 * @nla: netlink string attribute
832 * __nla_reserve - reserve room for attribute on the skb
834 * @attrtype: attribute type
835 * @attrlen: length of attribute payload
837 * Adds a netlink attribute header to a socket buffer and reserves
841 * tailroom for the attribute header and payload.
858 * __nla_reserve_64bit - reserve room for attribute on the skb and align it
860 * @attrtype: attribute type
861 * @attrlen: length of attribute payload
862 * @padattr: attribute type for the padding
864 * Adds a netlink attribute header to a socket buffer and reserves
866 * attribute will have a 64-bit aligned nla_data() area.
869 * tailroom for the attribute header and payload.
881 * __nla_reserve_nohdr - reserve room for attribute without header
883 * @attrlen: length of attribute payload
885 * Reserves room for attribute payload without a header.
897 * nla_reserve - reserve room for attribute on the skb
899 * @attrtype: attribute type
900 * @attrlen: length of attribute payload
902 * Adds a netlink attribute header to a socket buffer and reserves
906 * the attribute header and payload.
918 * nla_reserve_64bit - reserve room for attribute on the skb and align it
920 * @attrtype: attribute type
921 * @attrlen: length of attribute payload
922 * @padattr: attribute type for the padding
924 * Adds a netlink attribute header to a socket buffer and reserves
926 * attribute will have a 64-bit aligned nla_data() area.
929 * the attribute header and payload.
948 * nla_reserve_nohdr - reserve room for attribute without header
950 * @attrlen: length of attribute payload
952 * Reserves room for attribute payload without a header.
955 * the attribute payload.
967 * __nla_put - Add a netlink attribute to a socket buffer
968 * @skb: socket buffer to add attribute to
969 * @attrtype: attribute type
970 * @attrlen: length of attribute payload
971 * @data: head of attribute payload
974 * tailroom for the attribute header and payload.
987 * __nla_put_64bit - Add a netlink attribute to a socket buffer and align it
988 * @skb: socket buffer to add attribute to
989 * @attrtype: attribute type
990 * @attrlen: length of attribute payload
991 * @data: head of attribute payload
992 * @padattr: attribute type for the padding
995 * tailroom for the attribute header and payload.
1008 * __nla_put_nohdr - Add a netlink attribute without header
1009 * @skb: socket buffer to add attribute to
1010 * @attrlen: length of attribute payload
1011 * @data: head of attribute payload
1014 * tailroom for the attribute payload.
1026 * nla_put - Add a netlink attribute to a socket buffer
1027 * @skb: socket buffer to add attribute to
1028 * @attrtype: attribute type
1029 * @attrlen: length of attribute payload
1030 * @data: head of attribute payload
1033 * the attribute header and payload.
1046 * nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1047 * @skb: socket buffer to add attribute to
1048 * @attrtype: attribute type
1049 * @attrlen: length of attribute payload
1050 * @data: head of attribute payload
1051 * @padattr: attribute type for the padding
1054 * the attribute header and payload.
1074 * nla_put_nohdr - Add a netlink attribute without header
1075 * @skb: socket buffer to add attribute to
1076 * @attrlen: length of attribute payload
1077 * @data: head of attribute payload
1080 * the attribute payload.
1093 * nla_append - Add a netlink attribute without header or padding
1094 * @skb: socket buffer to add attribute to
1095 * @attrlen: length of attribute payload
1096 * @data: head of attribute payload
1099 * the attribute payload.