net: Support multiple IPv6 address per netdev

Note that user-space related code, like procfs and lifreq related ioctl commands, are not touched in this commit.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng
2023-08-25 17:37:11 +08:00
committed by Xiang Xiao
parent 96233e0c42
commit 2b9633e652
31 changed files with 202 additions and 107 deletions
+1 -2
View File
@@ -169,8 +169,7 @@ static int ifconf_ipv6_callback(FAR struct net_driver_s *dev, FAR void *arg)
* state.
*/
if (!net_ipv6addr_cmp(dev->d_ipv6addr, g_ipv6_unspecaddr) &&
(dev->d_flags & IFF_UP) != 0)
if (NETDEV_HAS_V6ADDR(dev) && IFF_IS_UP(dev->d_flags))
{
/* Check if we would exceed the buffer space provided by the caller.
* NOTE: A common usage model is: