Skip to content

Commit

Permalink
ip6: always register to multicast addresses
Browse files Browse the repository at this point in the history
As the loopback interface is not ethernet based, well known
multicast addresses were not registered: grout rejects the
neighbor solicitation and router solication messages.

Register to the well known multicast addresses even if there is no
ethernet addresses configured on the interface.

Signed-off-by: Christophe Fontaine <[email protected]>
  • Loading branch information
christophefontaine committed Jan 16, 2025
1 parent d66e7b6 commit 956c106
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions modules/ip6/control/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,10 @@ static void ip6_iface_event_handler(iface_event_t event, struct iface *iface) {
rte_ipv6_solnode_from_addr(&solicited_node, &link_local);
if (ip6_mcast_addr_add(iface, &solicited_node) < 0)
LOG(INFO, "%s: mcast_addr_add: %s", iface->name, strerror(errno));

for (i = 0; i < ARRAY_DIM(well_known_mcast_addrs); i++) {
if (ip6_mcast_addr_add(iface, &well_known_mcast_addrs[i]) < 0)
LOG(INFO,
"%s: mcast_addr_add: %s",
iface->name,
strerror(errno));
}
}
for (i = 0; i < ARRAY_DIM(well_known_mcast_addrs); i++) {
if (ip6_mcast_addr_add(iface, &well_known_mcast_addrs[i]) < 0)
LOG(INFO, "%s: mcast_addr_add: %s", iface->name, strerror(errno));
}
break;
case IFACE_EVENT_PRE_REMOVE:
Expand Down

0 comments on commit 956c106

Please sign in to comment.