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>
(cherry picked from commit 620daa36c5)
This commit is contained in:
Mark Stapp 2023-10-12 09:59:44 -04:00 committed by Mergify
parent bbad836f51
commit a32e39da2d

View File

@ -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: