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_get_addr_gen_mode(struct rtnl_link* link, uint8_t* mode)
{
    struct inet6_data* id;

    if (!(id = rtnl_link_af_data(link, &inet6_ops)))
        return -NLE_NOATTR;

    if (id->i6_addr_gen_mode == I6_ADDR_GEN_MODE_UNKNOWN)
        return -NLE_INVAL;

    *mode = id->i6_addr_gen_mode;
    return 0;
}
/**
 * Get IPv6 link-local address generation mode
 * @arg link		Link object
 * @arg mode		Generation mode on success
 *
 * Returns the link's IPv6 link-local address generation mode.
 *
 * @return 0 on success
 * @return -NLE_NOATTR configuration setting not available
 * @return -NLE_INVAL generation mode unknown. If the link was received via
 *                    netlink, it means that address generation mode is not
 *                    supported by the kernel.
 */
Get IPv6 link-local address generation mode
@arg link            Link object
@arg mode            Generation mode on success

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

@return 0 on success
@return -NLE_NOATTR configuration setting not available
@return -NLE_INVAL generation mode unknown. If the link was received via
netlink, it means that address generation mode is not
supported by the kernel.
Get IPv6 link - local address generation mode @arg link Link object @arg mode Generation mode on success Returns the link ' s IPv6 link - local address generation mode . @return 0 on success @return - NLE_NOATTR configuration setting not available @return - NLE_INVAL generation mode unknown . If the link was received via netlink it means that address generation mode is not supported by the kernel .
int rtnl_link_inet6_get_addr_gen_mode(struct rtnl_link* link, uint8_t* mode)
{
    struct inet6_data* id;
    if (!(id = rtnl_link_af_data(link, &inet6_ops)))
        return -NLE_NOATTR;
    if (id->i6_addr_gen_mode == I6_ADDR_GEN_MODE_UNKNOWN)
        return -NLE_INVAL;
    *mode = id->i6_addr_gen_mode;
    return 0;
}
int rtnl_link_inet6_get_addr_gen_mode ( struct rtnl_link * link , uint8_t * mode ) { struct inet6_data * id ; if ( ! ( id = rtnl_link_af_data ( link , & inet6_ops ) ) ) return - NLE_NOATTR ; if ( id -> i6_addr_gen_mode == I6_ADDR_GEN_MODE_UNKNOWN ) return - NLE_INVAL ; * mode = id -> i6_addr_gen_mode ; return 0 ; }
Get IPv6 link-local address generation mode
 @arg link            Link object
 @arg mode            Generation mode on success
Get IPv6 link - local address generation mode @arg link Link object @arg mode Generation mode on success