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
196 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in nla_validate_range_unsigned()
200 "invalid attribute length"); in nla_validate_range_unsigned()
213 "binary attribute size out of range"); in nla_validate_range_unsigned()
379 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in validate_nla()
383 "invalid attribute length"); in validate_nla()
475 * error message/attribute pointer in validate_nla()
482 /* a nested array attribute is allowed to be empty; if its not, in validate_nla()
498 * error message/attribute pointer in validate_nla()
508 "Unsupported attribute"); in validate_nla()
556 "Attribute failed policy validation"); in validate_nla()
584 "Unknown attribute type"); in __nla_validate_parse()
615 * @head: head of attribute stream
616 * @len: length of attribute stream
617 * @maxtype: maximum attribute type to be expected
622 * Validates all attributes in the specified attribute stream against the
670 * @maxtype: maximum attribute type to be expected
671 * @head: head of attribute stream
672 * @len: length of attribute stream
677 * Parses a stream of attributes and stores a pointer to each attribute in
678 * the tb array accessible via the attribute type.
694 * nla_find - Find a specific attribute in a stream of attributes
695 * @head: head of attribute stream
696 * @len: length of attribute stream
697 * @attrtype: type of attribute to look for
699 * Returns the first attribute in the stream matching the specified type.
715 * nla_strlcpy - Copy string attribute payload into a sized buffer
717 * @nla: attribute to copy the string from
746 * nla_strdup - Copy string attribute payload into a newly allocated buffer
747 * @nla: attribute to copy the string from
770 * nla_memcpy - Copy a netlink attribute into another memory area
772 * @src: netlink attribute to copy from
776 * attribute's payload. memcpy
793 * nla_memcmp - Compare an attribute with sized memory area
794 * @nla: netlink attribute
811 * nla_strcmp - Compare a string attribute against a string
812 * @nla: netlink string attribute
835 * __nla_reserve - reserve room for attribute on the skb
837 * @attrtype: attribute type
838 * @attrlen: length of attribute payload
840 * Adds a netlink attribute header to a socket buffer and reserves
844 * tailroom for the attribute header and payload.
861 * __nla_reserve_64bit - reserve room for attribute on the skb and align it
863 * @attrtype: attribute type
864 * @attrlen: length of attribute payload
865 * @padattr: attribute type for the padding
867 * Adds a netlink attribute header to a socket buffer and reserves
869 * attribute will have a 64-bit aligned nla_data() area.
872 * tailroom for the attribute header and payload.
884 * __nla_reserve_nohdr - reserve room for attribute without header
886 * @attrlen: length of attribute payload
888 * Reserves room for attribute payload without a header.
900 * nla_reserve - reserve room for attribute on the skb
902 * @attrtype: attribute type
903 * @attrlen: length of attribute payload
905 * Adds a netlink attribute header to a socket buffer and reserves
909 * the attribute header and payload.
921 * nla_reserve_64bit - reserve room for attribute on the skb and align it
923 * @attrtype: attribute type
924 * @attrlen: length of attribute payload
925 * @padattr: attribute type for the padding
927 * Adds a netlink attribute header to a socket buffer and reserves
929 * attribute will have a 64-bit aligned nla_data() area.
932 * the attribute header and payload.
951 * nla_reserve_nohdr - reserve room for attribute without header
953 * @attrlen: length of attribute payload
955 * Reserves room for attribute payload without a header.
958 * the attribute payload.
970 * __nla_put - Add a netlink attribute to a socket buffer
971 * @skb: socket buffer to add attribute to
972 * @attrtype: attribute type
973 * @attrlen: length of attribute payload
974 * @data: head of attribute payload
977 * tailroom for the attribute header and payload.
990 * __nla_put_64bit - Add a netlink attribute to a socket buffer and align it
991 * @skb: socket buffer to add attribute to
992 * @attrtype: attribute type
993 * @attrlen: length of attribute payload
994 * @data: head of attribute payload
995 * @padattr: attribute type for the padding
998 * tailroom for the attribute header and payload.
1011 * __nla_put_nohdr - Add a netlink attribute without header
1012 * @skb: socket buffer to add attribute to
1013 * @attrlen: length of attribute payload
1014 * @data: head of attribute payload
1017 * tailroom for the attribute payload.
1029 * nla_put - Add a netlink attribute to a socket buffer
1030 * @skb: socket buffer to add attribute to
1031 * @attrtype: attribute type
1032 * @attrlen: length of attribute payload
1033 * @data: head of attribute payload
1036 * the attribute header and payload.
1049 * nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1050 * @skb: socket buffer to add attribute to
1051 * @attrtype: attribute type
1052 * @attrlen: length of attribute payload
1053 * @data: head of attribute payload
1054 * @padattr: attribute type for the padding
1057 * the attribute header and payload.
1077 * nla_put_nohdr - Add a netlink attribute without header
1078 * @skb: socket buffer to add attribute to
1079 * @attrlen: length of attribute payload
1080 * @data: head of attribute payload
1083 * the attribute payload.
1096 * nla_append - Add a netlink attribute without header or padding
1097 * @skb: socket buffer to add attribute to
1098 * @attrlen: length of attribute payload
1099 * @data: head of attribute payload
1102 * the attribute payload.