Lines Matching full:attribute

19 /* For these data types, attribute length should be exactly the given
21 * attribute length does not match the expected size a warning is emitted
214 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in nla_validate_range_unsigned()
218 "invalid attribute length"); in nla_validate_range_unsigned()
231 "binary attribute size out of range"); in nla_validate_range_unsigned()
414 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in validate_nla()
418 "invalid attribute length"); in validate_nla()
457 "invalid attribute length"); in validate_nla()
519 * error message/attribute pointer in validate_nla()
526 /* a nested array attribute is allowed to be empty; if its not, in validate_nla()
542 * error message/attribute pointer in validate_nla()
552 "Unsupported attribute"); in validate_nla()
600 "Attribute failed policy validation"); in validate_nla()
628 "Unknown attribute type"); in __nla_validate_parse()
659 * @head: head of attribute stream
660 * @len: length of attribute stream
661 * @maxtype: maximum attribute type to be expected
666 * Validates all attributes in the specified attribute stream against the
714 * @maxtype: maximum attribute type to be expected
715 * @head: head of attribute stream
716 * @len: length of attribute stream
721 * Parses a stream of attributes and stores a pointer to each attribute in
722 * the tb array accessible via the attribute type.
738 * nla_find - Find a specific attribute in a stream of attributes
739 * @head: head of attribute stream
740 * @len: length of attribute stream
741 * @attrtype: type of attribute to look for
743 * Returns the first attribute in the stream matching the specified type.
759 * nla_strscpy - Copy string attribute payload into a sized buffer
761 * @nla: Attribute to copy the string from.
802 * nla_strdup - Copy string attribute payload into a newly allocated buffer
803 * @nla: attribute to copy the string from
826 * nla_memcpy - Copy a netlink attribute into another memory area
828 * @src: netlink attribute to copy from
832 * attribute's payload. memcpy
849 * nla_memcmp - Compare an attribute with sized memory area
850 * @nla: netlink attribute
867 * nla_strcmp - Compare a string attribute against a string
868 * @nla: netlink string attribute
891 * __nla_reserve - reserve room for attribute on the skb
893 * @attrtype: attribute type
894 * @attrlen: length of attribute payload
896 * Adds a netlink attribute header to a socket buffer and reserves
900 * tailroom for the attribute header and payload.
917 * __nla_reserve_64bit - reserve room for attribute on the skb and align it
919 * @attrtype: attribute type
920 * @attrlen: length of attribute payload
921 * @padattr: attribute type for the padding
923 * Adds a netlink attribute header to a socket buffer and reserves
925 * attribute will have a 64-bit aligned nla_data() area.
928 * tailroom for the attribute header and payload.
940 * __nla_reserve_nohdr - reserve room for attribute without header
942 * @attrlen: length of attribute payload
944 * Reserves room for attribute payload without a header.
956 * nla_reserve - reserve room for attribute on the skb
958 * @attrtype: attribute type
959 * @attrlen: length of attribute payload
961 * Adds a netlink attribute header to a socket buffer and reserves
965 * the attribute header and payload.
977 * nla_reserve_64bit - reserve room for attribute on the skb and align it
979 * @attrtype: attribute type
980 * @attrlen: length of attribute payload
981 * @padattr: attribute type for the padding
983 * Adds a netlink attribute header to a socket buffer and reserves
985 * attribute will have a 64-bit aligned nla_data() area.
988 * the attribute header and payload.
1007 * nla_reserve_nohdr - reserve room for attribute without header
1009 * @attrlen: length of attribute payload
1011 * Reserves room for attribute payload without a header.
1014 * 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 * tailroom for 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 * tailroom for the attribute header and payload.
1067 * __nla_put_nohdr - Add a netlink attribute without header
1068 * @skb: socket buffer to add attribute to
1069 * @attrlen: length of attribute payload
1070 * @data: head of attribute payload
1073 * tailroom for the attribute payload.
1085 * nla_put - Add a netlink attribute to a socket buffer
1086 * @skb: socket buffer to add attribute to
1087 * @attrtype: attribute type
1088 * @attrlen: length of attribute payload
1089 * @data: head of attribute payload
1092 * the attribute header and payload.
1105 * nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1106 * @skb: socket buffer to add attribute to
1107 * @attrtype: attribute type
1108 * @attrlen: length of attribute payload
1109 * @data: head of attribute payload
1110 * @padattr: attribute type for the padding
1113 * the attribute header and payload.
1133 * nla_put_nohdr - Add a netlink attribute without header
1134 * @skb: socket buffer to add attribute to
1135 * @attrlen: length of attribute payload
1136 * @data: head of attribute payload
1139 * the attribute payload.
1152 * nla_append - Add a netlink attribute without header or padding
1153 * @skb: socket buffer to add attribute to
1154 * @attrlen: length of attribute payload
1155 * @data: head of attribute payload
1158 * the attribute payload.