package/libs/libnl-tiny/src/include/netlink/attr.h
/**
 * Start a new level of nested attributes.
 * @arg msg		Netlink message.
 * @arg attrtype	Attribute type of container.
 *
 * @return Pointer to container attribute.
 */
Start a new level of nested attributes.
@arg msg             Netlink message.
@arg attrtype        Attribute type of container.

@return Pointer to container attribute.
Start a new level of nested attributes . @arg msg Netlink message . @arg attrtype Attribute type of container . @return Pointer to container attribute .
static inline struct nlattr *nla_nest_start(struct nl_msg *msg, int attrtype)
{
	struct nlattr *start = (struct nlattr *) nlmsg_tail(msg->nm_nlh);
	if (nla_put(msg, attrtype, 0, NULL) < 0)
		return NULL;
	return start;
}
static inline struct nlattr * nla_nest_start ( struct nl_msg * msg , int attrtype ) { struct nlattr * start = ( struct nlattr * ) nlmsg_tail ( msg -> nm_nlh ) ; if ( nla_put ( msg , attrtype , 0 , NULL ) < 0 ) return NULL ; return start ; }
Start a new level of nested attributes.
Start a new level of nested attributes .