summaryrefslogtreecommitdiff
path: root/zebra/kernel_netlink.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2023-10-12 09:59:44 -0400
committerMark Stapp <mjs@labn.net>2023-10-12 09:59:44 -0400
commit620daa36c5a757a96b6d0ed97e350d00b721cc48 (patch)
tree85fe72d86af04ec6389cbc4f92d81a3cc44bb474 /zebra/kernel_netlink.c
parent9bc4d9eaec92589deda092bd867054e25e64be3f (diff)
zebra: add RTM_xxxCHAIN message codes, ignore
We may receive some xxxCHAIN netlink messages, but we ignore them (currently). Add them to the basic handler callback so that we don't log errors about them. Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r--zebra/kernel_netlink.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c
index 6f9c5008af..7c934ed18d 100644
--- a/zebra/kernel_netlink.c
+++ b/zebra/kernel_netlink.c
@@ -425,6 +425,12 @@ static int netlink_information_fetch(struct nlmsghdr *h, ns_id_t ns_id,
case RTM_DELVLAN:
return netlink_vlan_change(h, ns_id, startup);
+ /* Messages we may receive, but ignore */
+ case RTM_NEWCHAIN:
+ case RTM_DELCHAIN:
+ case RTM_GETCHAIN:
+ return 0;
+
/* Messages handled in the dplane thread */
case RTM_NEWADDR:
case RTM_DELADDR: