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/route/link/inet6.c
int rtnl_link_inet6_set_addr_gen_mode(struct rtnl_link* link, uint8_t mode)
{
    struct inet6_data* id;

    if (!(id = rtnl_link_af_alloc(link, &inet6_ops)))
        return -NLE_NOMEM;

    id->i6_addr_gen_mode = mode;
    return 0;
}
/**
 * Set IPv6 link-local address generation mode
 * @arg link		Link object
 * @arg mode		Generation mode
 *
 * Sets the link's IPv6 link-local address generation mode.
 *
 * @return 0 on success
 * @return -NLE_NOMEM could not allocate inet6 data
 */
Set IPv6 link-local address generation mode
@arg link            Link object
@arg mode            Generation mode

Sets the link's IPv6 link-local address generation mode.

@return 0 on success
@return -NLE_NOMEM could not allocate inet6 data
Set IPv6 link - local address generation mode @arg link Link object @arg mode Generation mode Sets the link ' s IPv6 link - local address generation mode . @return 0 on success @return - NLE_NOMEM could not allocate inet6 data
int rtnl_link_inet6_set_addr_gen_mode(struct rtnl_link* link, uint8_t mode)
{
    struct inet6_data* id;
    if (!(id = rtnl_link_af_alloc(link, &inet6_ops)))
        return -NLE_NOMEM;
    id->i6_addr_gen_mode = mode;
    return 0;
}
int rtnl_link_inet6_set_addr_gen_mode ( struct rtnl_link * link , uint8_t mode ) { struct inet6_data * id ; if ( ! ( id = rtnl_link_af_alloc ( link , & inet6_ops ) ) ) return - NLE_NOMEM ; id -> i6_addr_gen_mode = mode ; return 0 ; }
Set IPv6 link-local address generation mode
 @arg link            Link object
 @arg mode            Generation mode
Set IPv6 link - local address generation mode @arg link Link object @arg mode Generation mode