This commit is contained in:
Pim van Pelt
2022-03-08 13:42:56 +00:00
parent 554988ebf6
commit a27fdb9911

View File

@ -967,6 +967,12 @@ lcp_nl_neigh_add (struct rtnl_neigh *rn)
return;
}
if (ip46_address_is_multicast (&ip_addr_46 (&nh)))
{
NL_DBG ("neigh_add: ignore multicast %U", format_nl_object, rn);
return;
}
lcp_nl_mk_ip_addr (rtnl_neigh_get_dst (rn), &nh);
ll = rtnl_neigh_get_lladdr (rn);
state = rtnl_neigh_get_state (rn);
@ -1017,6 +1023,12 @@ lcp_nl_neigh_del (struct rtnl_neigh *rn)
return;
}
if (ip46_address_is_multicast (&ip_addr_46 (&nh)))
{
NL_DBG ("neigh_del: ignore multicast %U", format_nl_object, rn);
return;
}
lcp_nl_mk_ip_addr (rtnl_neigh_get_dst (rn), &nh);
rv = ip_neighbor_del (&nh, lip->lip_phy_sw_if_index);