openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/attr.c
int nla_put_nested(struct nl_msg* msg, int attrtype,
                   const struct nl_msg* nested)
{
    NL_DBG(2, "msg %p: attr <> %d: adding msg %p as nested attribute\n", msg,
           attrtype, nested);

    return nla_put(msg, attrtype, nlmsg_datalen(nested->nm_nlh),
                   nlmsg_data(nested->nm_nlh));
}
/**
 * Add nested attributes to netlink message.
 * @arg msg		Netlink message.
 * @arg attrtype	Attribute type.
 * @arg nested		Message containing attributes to be nested.
 *
 * Takes the attributes found in the \a nested message and appends them
 * to the message \a msg nested in a container of the type \a attrtype.
 * The \a nested message may not have a family specific header.
 *
 * @see nla_put
 * @return 0 on success or a negative error code.
 */
Add nested attributes to netlink message.
@arg msg             Netlink message.
@arg attrtype        Attribute type.
@arg nested          Message containing attributes to be nested.

Takes the attributes found in the \a nested message and appends them
to the message \a msg nested in a container of the type \a attrtype.
The \a nested message may not have a family specific header.

@see nla_put
@return 0 on success or a negative error code.
Add nested attributes to netlink message . @arg msg Netlink message . @arg attrtype Attribute type . @arg nested Message containing attributes to be nested . Takes the attributes found in the \ a nested message and appends them to the message \ a msg nested in a container of the type \ a attrtype . The \ a nested message may not have a family specific header . @see nla_put @return 0 on success or a negative error code .
int nla_put_nested(struct nl_msg* msg, int attrtype,
                   const struct nl_msg* nested)
{
    NL_DBG(2, "msg %p: attr <> %d: adding msg %p as nested attribute\n", msg,
           attrtype, nested);
    return nla_put(msg, attrtype, nlmsg_datalen(nested->nm_nlh),
                   nlmsg_data(nested->nm_nlh));
}
int nla_put_nested ( struct nl_msg * msg , int attrtype , const struct nl_msg * nested ) { NL_DBG ( 2 , " \n " , msg , attrtype , nested ) ; return nla_put ( msg , attrtype , nlmsg_datalen ( nested -> nm_nlh ) , nlmsg_data ( nested -> nm_nlh ) ) ; }
Add nested attributes to netlink message.
Add nested attributes to netlink message .