nuttx/net/netdev
Zhe Weng 5aeb15469a netdev/ipv6: Move xxx_ipv6multicast from arch to common code
The `xxx_ipv6multicast` function in each driver is not adapted to
multiple IPv6 addresses yet, and they're redundant, so try to take them
into common code.

Change:
1. Add MAC `g_ipv6_ethallnodes` and `g_ipv6_ethallrouters` in
   `icmpv6_devinit` and call them in `netdev_register`
2. Add multicast MAC for Neighbor Solicitation when adding any IPv6
   address, and remove them when IPv6 address is removed
3. Select `NET_MCASTGROUP` when `NET_ICMPv6` because now we need
   `d_addmac` when we have ICMPv6

Note:
We want modules outside net stack to call functions like
`netdev_ipv6_add` and never touch the related MAC address, so these MAC
functions are added as internal functions to `net/netdev/netdev.h`

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-12-16 05:26:16 -08:00
..
CMakeLists.txt net/netdev: Support multiple IPv6 addresses per device 2023-11-07 19:30:36 +08:00
Kconfig net/netdev: Support multiple IPv6 addresses per device 2023-11-07 19:30:36 +08:00
Make.defs net/netdev: Support multiple IPv6 addresses per device 2023-11-07 19:30:36 +08:00
netdev_carrier.c net/netdev: Modify the logic for setting the IFF_RUNNING status of interfaces. 2023-12-15 18:24:23 -08:00
netdev_count.c
netdev_default.c
netdev_findbyaddr.c net: Support multiple IPv6 address per netdev 2023-11-07 19:30:36 +08:00
netdev_findbyindex.c netdev: remove ASSERT when ifindex is invalid 2023-06-13 13:32:03 +08:00
netdev_findbyname.c
netdev_foreach.c
netdev_ifconf.c net/netdev: Support managing multiple IPv6 addresses by ioctl 2023-11-07 19:30:36 +08:00
netdev_input.c mm/iob: Support negative offset when copyin/out. 2023-01-31 00:39:15 +08:00
netdev_iob.c net/netdev: Avoid hardcoded guardsize when using d_iob 2023-01-18 14:41:07 +08:00
netdev_ioctl.c netdev/ipv6: Move xxx_ipv6multicast from arch to common code 2023-12-16 05:26:16 -08:00
netdev_ipv6.c netdev/ipv6: Move xxx_ipv6multicast from arch to common code 2023-12-16 05:26:16 -08:00
netdev_lladdrsize.c
netdev_register.c netdev/ipv6: Move xxx_ipv6multicast from arch to common code 2023-12-16 05:26:16 -08:00
netdev_txnotify.c net/tcp: reuse common api to replace some ip select code 2023-01-30 11:25:10 +08:00
netdev_unregister.c
netdev_verify.c
netdev.h netdev/ipv6: Move xxx_ipv6multicast from arch to common code 2023-12-16 05:26:16 -08:00
netdown_notifier.c