Oops! update it

This commit is contained in:
Sukchan Lee 2017-12-18 00:54:29 +09:00
parent a5cc4f7a43
commit a102864428
1 changed files with 4 additions and 2 deletions

View File

@ -344,7 +344,7 @@ status_t tun_set_ipv6(sock_id id, ipsubnet_t *ipaddr, ipsubnet_t *ipsub)
status_t tun_set_ip(sock_id id, ipsubnet_t *gw, ipsubnet_t *sub)
{
status_t rv;
status_t rv = CORE_OK;
d_assert(id, return CORE_ERROR,);
d_assert(gw, return CORE_ERROR,);
@ -352,10 +352,12 @@ status_t tun_set_ip(sock_id id, ipsubnet_t *gw, ipsubnet_t *sub)
if (gw->family == AF_INET)
rv = tun_set_ipv4(id, gw, sub);
#if 0
else if (gw->family == AF_INET6)
{
#if 0
rv = tun_set_ipv6(id, gw, sub);
#endif
}
else
d_assert(0, return CORE_ERROR,);