diff options
Diffstat (limited to 'apps/netutils/netlib/netlib_setipv6netmask.c')
-rw-r--r-- | apps/netutils/netlib/netlib_setipv6netmask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/netutils/netlib/netlib_setipv6netmask.c b/apps/netutils/netlib/netlib_setipv6netmask.c index f092790a2..fc9d67f37 100644 --- a/apps/netutils/netlib/netlib_setipv6netmask.c +++ b/apps/netutils/netlib/netlib_setipv6netmask.c @@ -89,9 +89,9 @@ int netlib_set_ipv6netmask(FAR const char *ifname, /* Add the INET address to the request */ - inaddr = (FAR struct sockaddr_in6 *)&req.lifr_addr; - inaddr->sin_family = AF_INET6; - inaddr->sin_port = 0; + inaddr = (FAR struct sockaddr_in6 *)&req.lifr_addr; + inaddr->sin6_family = AF_INET6; + inaddr->sin6_port = 0; memcpy(&inaddr->sin6_addr, addr, sizeof(struct in6_addr)); ret = ioctl(sockfd, SIOCSLIFNETMASK, (unsigned long)((uintptr_t)&req)); |