mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 14:43:33 +08:00
First round of compile fixes for IPv6
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4813 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -92,7 +92,6 @@ int uip_gethostaddr(const char *ifname, struct in_addr *addr)
|
||||
if (!ret)
|
||||
{
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#error "req.ifr_addr.s_addr not big enough for IPv6 address"
|
||||
memcpy(addr, &req.ifr_addr, sizeof(struct in6_addr));
|
||||
#else
|
||||
memcpy(addr, &req.ifr_addr, sizeof(struct in_addr));
|
||||
|
||||
@@ -96,7 +96,6 @@ int uip_setdraddr(const char *ifname, const struct in_addr *addr)
|
||||
/* Add the INET address to the request */
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#error "req.ifr_addr.s_addr not big enough for IPv6 address"
|
||||
inaddr = (struct sockaddr_in6 *)&req.ifr_addr;
|
||||
inaddr->sin_family = AF_INET6;
|
||||
inaddr->sin_port = 0;
|
||||
|
||||
@@ -96,7 +96,6 @@ int uip_sethostaddr(const char *ifname, const struct in_addr *addr)
|
||||
/* Add the INET address to the request */
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#error "req.ifr_addr.s_addr not big enough for IPv6 address"
|
||||
inaddr = (struct sockaddr_in6 *)&req.ifr_addr;
|
||||
inaddr->sin_family = AF_INET6;
|
||||
inaddr->sin_port = 0;
|
||||
|
||||
@@ -95,7 +95,6 @@ int uip_setnetmask(const char *ifname, const struct in_addr *addr)
|
||||
/* Add the INET address to the request */
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#error "req.ifr_addr.s_addr not big enough for IPv6 address"
|
||||
inaddr = (struct sockaddr_in6 *)&req.ifr_addr;
|
||||
inaddr->sin_family = AF_INET6;
|
||||
inaddr->sin_port = 0;
|
||||
|
||||
Reference in New Issue
Block a user