From 620daa36c5a757a96b6d0ed97e350d00b721cc48 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 12 Oct 2023 09:59:44 -0400 Subject: [PATCH] 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 --- zebra/kernel_netlink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 6f9c5008afc9..7c934ed18d12 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: