package/libs/libnl-tiny/src/include/netlink/attr.h
/**
 * Add abstract data as unspecific attribute to netlink message.
 * @arg msg		Netlink message.
 * @arg attrtype	Attribute type.
 * @arg data		Abstract data object.
 *
 * Equivalent to nla_put() except that the length of the payload is
 * derived from the abstract data object.
 *
 * @see nla_put
 * @return 0 on success or a negative error code.
 */
Add abstract data as unspecific attribute to netlink message.
@arg msg             Netlink message.
@arg attrtype        Attribute type.
@arg data            Abstract data object.

Equivalent to nla_put() except that the length of the payload is
derived from the abstract data object.

@see nla_put
@return 0 on success or a negative error code.
Add abstract data as unspecific attribute to netlink message . @arg msg Netlink message . @arg attrtype Attribute type . @arg data Abstract data object . Equivalent to nla_put () except that the length of the payload is derived from the abstract data object . @see nla_put @return 0 on success or a negative error code .
static inline int nla_put_data(struct nl_msg *msg, int attrtype, struct nl_data *data)
{
	return nla_put(msg, attrtype, nl_data_get_size(data),
		       nl_data_get(data));
}
static inline int nla_put_data ( struct nl_msg * msg , int attrtype , struct nl_data * data ) { return nla_put ( msg , attrtype , nl_data_get_size ( data ) , nl_data_get ( data ) ) ; }
Add abstract data as unspecific attribute to netlink message.
Add abstract data as unspecific attribute to netlink message .