summaryrefslogtreecommitdiff
path: root/nuttx/net/devif
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-16 10:01:54 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-16 10:01:54 -0600
commit5f4c1772a8cd1527d3be305cfdc807446e5bce8a (patch)
tree74eb20a65b4f67fd73c91ae04771ba123c26174a /nuttx/net/devif
parent8c1935a004d78bfcdd80638c38fcaa07152f6815 (diff)
downloadpx4-nuttx-5f4c1772a8cd1527d3be305cfdc807446e5bce8a.tar.gz
px4-nuttx-5f4c1772a8cd1527d3be305cfdc807446e5bce8a.tar.bz2
px4-nuttx-5f4c1772a8cd1527d3be305cfdc807446e5bce8a.zip
Networking: Drivers can have both IPv4 and IPv6 addesses, but a socket can only only one or the other; The socket connnection structures need to include a union of IPv4 and IPv6 addresses for the local address binding and for the remote address connections
Diffstat (limited to 'nuttx/net/devif')
-rw-r--r--nuttx/net/devif/ipv6_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/devif/ipv6_input.c b/nuttx/net/devif/ipv6_input.c
index f98ef48a9..43a14a946 100644
--- a/nuttx/net/devif/ipv6_input.c
+++ b/nuttx/net/devif/ipv6_input.c
@@ -209,7 +209,7 @@ int ipv6_input(FAR struct net_driver_s *dev)
else
#endif
#ifdef CONFIG_NET_ICMPv6
- if (net_ipv6addr_cmp(dev->d_ipaddr, g_allzeroaddr))
+ if (net_ipv6addr_cmp(dev->d_ipv6addr, g_allzeroaddr))
{
/* If we are configured to use ping IP address configuration and
* hasn't been assigned an IP address yet, we accept all ICMP
@@ -233,7 +233,7 @@ int ipv6_input(FAR struct net_driver_s *dev)
* multicast packets that are sent to the ff02::/16 addresses.
*/
- if (!net_ipv6addr_cmp(pbuf->destipaddr, dev->d_ipaddr) &&
+ if (!net_ipv6addr_cmp(pbuf->destipaddr, dev->d_ipv6addr) &&
pbuf->destipaddr[0] != 0xff02)
{
#ifdef CONFIG_NET_STATISTICS