Skip to content

Commit

Permalink
neighsyncd: Ignoring IPv6 link-local addresses for now as are not used (
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng committed Nov 4, 2016
1 parent 4a0b3b2 commit afaa836
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neighsyncd/neighsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ void NeighSync::onMsg(int nlmsg_type, struct nl_object *obj)
key+= ":";

nl_addr2str(rtnl_neigh_get_dst(neigh), ipStr, MAX_ADDR_SIZE);
/* Ignore IPv6 link-local addresses as neighbors */
if (family == IPV6_NAME && IN6_IS_ADDR_LINKLOCAL(nl_addr_get_binary_addr(rtnl_neigh_get_dst(neigh))))
return;
/* Ignore IPv6 multicast link-local addresses as neighbors */
if (family == IPV6_NAME && IN6_IS_ADDR_MC_LINKLOCAL(nl_addr_get_binary_addr(rtnl_neigh_get_dst(neigh))))
return;
Expand Down

0 comments on commit afaa836

Please sign in to comment.