linux-cp: ignore neighbors if ip addr is multicast 23/35523/4
authorAlexander Chernavin <[email protected]>
Thu, 21 Oct 2021 08:29:11 +0000 (08:29 +0000)
committerMatthew Smith <[email protected]>
Fri, 4 Mar 2022 15:58:42 +0000 (15:58 +0000)
commitbc91e86674d446e024a957318d42a3bbd3280bf1
treee38f274b50483096b8beab2a5605fa2de9d4c0d4
parent81e74d8e22365166043de40666f324df0533ccef
linux-cp: ignore neighbors if ip addr is multicast

Type: improvement

When dump of neighbors is requested, the replies will also include
neighbor entries for IPv6 multicast addresses:

  GigabitEthernet0/8/0  S           ff02::16  33:33:00:00:00:16
  GigabitEthernet0/8/0  S  ff02::1:ff76:7135  33:33:ff:76:71:35
  GigabitEthernet0/8/0  S            ff02::2  33:33:00:00:00:02

Such entries are not reported in netlink notification messages and
VPP is unlikely to use these.

With this change, ignore neighbor entries when the IP address is a
multicast address.

Signed-off-by: Alexander Chernavin <[email protected]>
Change-Id: Ic712aa4904f1d559f31fd89ff4541268e2340f84
src/plugins/linux-cp/lcp_router.c