From 5f4c1772a8cd1527d3be305cfdc807446e5bce8a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 16 Jan 2015 10:01:54 -0600 Subject: 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 --- nuttx/net/devif/ipv6_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuttx/net/devif') 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 -- cgit v1.2.3