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/sit.c
int rtnl_link_sit_get_ip6rd_prefix(const struct rtnl_link* link,
                                   struct in6_addr* prefix)
{
    IS_SIT_LINK_ASSERT(link, sit);

    if (!(sit->sit_mask & SIT_ATTR_6RD_PREFIX))
        return -NLE_NOATTR;

    if (prefix)
        *prefix = sit->ip6rd_prefix;
    return 0;
}
/**
 * Get ip6rd prefix
 * @arg link            Link object
 * @arg prefix          The output IPv6 prefix
 *
 * @return 0 on success or an error code. If the property is unset,
 *   this call fails too.
 */
Get ip6rd prefix
@arg link            Link object
@arg prefix          The output IPv6 prefix

@return 0 on success or an error code. If the property is unset,
this call fails too.
Get ip6rd prefix @arg link Link object @arg prefix The output IPv6 prefix @return 0 on success or an error code . If the property is unset this call fails too .
int rtnl_link_sit_get_ip6rd_prefix(const struct rtnl_link* link,
                                   struct in6_addr* prefix)
{
    IS_SIT_LINK_ASSERT(link, sit);
    if (!(sit->sit_mask & SIT_ATTR_6RD_PREFIX))
        return -NLE_NOATTR;
    if (prefix)
        *prefix = sit->ip6rd_prefix;
    return 0;
}
int rtnl_link_sit_get_ip6rd_prefix ( const struct rtnl_link * link , struct in6_addr * prefix ) { IS_SIT_LINK_ASSERT ( link , sit ) ; if ( ! ( sit -> sit_mask & SIT_ATTR_6RD_PREFIX ) ) return - NLE_NOATTR ; if ( prefix ) * prefix = sit -> ip6rd_prefix ; return 0 ; }
Get ip6rd prefix
 @arg link            Link object
 @arg prefix          The output IPv6 prefix
Get ip6rd prefix @arg link Link object @arg prefix The output IPv6 prefix