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
205 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in nla_validate_range_unsigned()
209 "invalid attribute length"); in nla_validate_range_unsigned()
222 "binary attribute size out of range"); in nla_validate_range_unsigned()
389 pr_warn_ratelimited("netlink: '%s': attribute type %d has an invalid length.\n", in validate_nla()
393 "invalid attribute length"); in validate_nla()
485 * error message/attribute pointer in validate_nla()
492 /* a nested array attribute is allowed to be empty; if its not, in validate_nla()
508 * error message/attribute pointer in validate_nla()
518 "Unsupported attribute"); in validate_nla()
566 "Attribute failed policy validation"); in validate_nla()
594 "Unknown attribute type"); in __nla_validate_parse()
624 * @head: head of attribute stream
625 * @len: length of attribute stream
626 * @maxtype: maximum attribute type to be expected
631 * Validates all attributes in the specified attribute stream against the
679 * @maxtype: maximum attribute type to be expected
680 * @head: head of attribute stream
681 * @len: length of attribute stream
686 * Parses a stream of attributes and stores a pointer to each attribute in
687 * the tb array accessible via the attribute type.
703 * nla_find - Find a specific attribute in a stream of attributes
704 * @head: head of attribute stream
705 * @len: length of attribute stream
706 * @attrtype: type of attribute to look for
708 * Returns the first attribute in the stream matching the specified type.
724 * nla_strscpy - Copy string attribute payload into a sized buffer
726 * @nla: Attribute to copy the string from.
767 * nla_strdup - Copy string attribute payload into a newly allocated buffer
768 * @nla: attribute to copy the string from
791 * nla_memcpy - Copy a netlink attribute into another memory area
793 * @src: netlink attribute to copy from
797 * attribute's payload. memcpy
814 * nla_memcmp - Compare an attribute with sized memory area
815 * @nla: netlink attribute
832 * nla_strcmp - Compare a string attribute against a string
833 * @nla: netlink string attribute
856 * __nla_reserve - reserve room for attribute on the skb
858 * @attrtype: attribute type
859 * @attrlen: length of attribute payload
861 * Adds a netlink attribute header to a socket buffer and reserves
865 * tailroom for the attribute header and payload.
882 * __nla_reserve_64bit - reserve room for attribute on the skb and align it
884 * @attrtype: attribute type
885 * @attrlen: length of attribute payload
886 * @padattr: attribute type for the padding
888 * Adds a netlink attribute header to a socket buffer and reserves
890 * attribute will have a 64-bit aligned nla_data() area.
893 * tailroom for the attribute header and payload.
905 * __nla_reserve_nohdr - reserve room for attribute without header
907 * @attrlen: length of attribute payload
909 * Reserves room for attribute payload without a header.
921 * nla_reserve - reserve room for attribute on the skb
923 * @attrtype: attribute type
924 * @attrlen: length of attribute payload
926 * Adds a netlink attribute header to a socket buffer and reserves
930 * the attribute header and payload.
942 * nla_reserve_64bit - reserve room for attribute on the skb and align it
944 * @attrtype: attribute type
945 * @attrlen: length of attribute payload
946 * @padattr: attribute type for the padding
948 * Adds a netlink attribute header to a socket buffer and reserves
950 * attribute will have a 64-bit aligned nla_data() area.
953 * the attribute header and payload.
972 * nla_reserve_nohdr - reserve room for attribute without header
974 * @attrlen: length of attribute payload
976 * Reserves room for attribute payload without a header.
979 * the attribute payload.
991 * __nla_put - Add a netlink attribute to a socket buffer
992 * @skb: socket buffer to add attribute to
993 * @attrtype: attribute type
994 * @attrlen: length of attribute payload
995 * @data: head of attribute payload
998 * tailroom for the attribute header and payload.
1011 * __nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1012 * @skb: socket buffer to add attribute to
1013 * @attrtype: attribute type
1014 * @attrlen: length of attribute payload
1015 * @data: head of attribute payload
1016 * @padattr: attribute type for the padding
1019 * tailroom for the attribute header and payload.
1032 * __nla_put_nohdr - Add a netlink attribute without header
1033 * @skb: socket buffer to add attribute to
1034 * @attrlen: length of attribute payload
1035 * @data: head of attribute payload
1038 * tailroom for the attribute payload.
1050 * nla_put - Add a netlink attribute to a socket buffer
1051 * @skb: socket buffer to add attribute to
1052 * @attrtype: attribute type
1053 * @attrlen: length of attribute payload
1054 * @data: head of attribute payload
1057 * the attribute header and payload.
1070 * nla_put_64bit - Add a netlink attribute to a socket buffer and align it
1071 * @skb: socket buffer to add attribute to
1072 * @attrtype: attribute type
1073 * @attrlen: length of attribute payload
1074 * @data: head of attribute payload
1075 * @padattr: attribute type for the padding
1078 * the attribute header and payload.
1098 * nla_put_nohdr - Add a netlink attribute without header
1099 * @skb: socket buffer to add attribute to
1100 * @attrlen: length of attribute payload
1101 * @data: head of attribute payload
1104 * the attribute payload.
1117 * nla_append - Add a netlink attribute without header or padding
1118 * @skb: socket buffer to add attribute to
1119 * @attrlen: length of attribute payload
1120 * @data: head of attribute payload
1123 * the attribute payload.