]> git.proxmox.com Git - mirror_frr.git/commit
zebra: Ignore most netlink notifications from ourselves
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 23 May 2018 12:25:51 +0000 (08:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 24 May 2018 13:13:05 +0000 (09:13 -0400)
commit3575d9e86607b6f83f8f3bef6979fe804bfe6de2
treef6d9ea5667131a6069937c77169f5d660d32d521
parent19300af8f26be3b34041f90944c6fc07ad138fe1
zebra: Ignore most netlink notifications from ourselves

The BPF filter was an exclusion list of netlink messages
we did not want to receive from our self.  The problem
with this is that the exclusion list was and will be
ever growing.  So switch the test around to an inclusion
list since it is shorter and not growing.  Right
now this is RTM_NEWADDR and RTM_DELADDR.

Change some of the debug messages to error messages
so that when something slips through and it is unexpected
during development we will see the problem.

Also try to improve the documentation about what
the filter is doing and leave some breadcrumbs for
future developers to know where to change code
when new functionality is added.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/kernel_netlink.c