]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: add RTM_xxxCHAIN message codes, ignore
authorMark Stapp <mjs@labn.net>
Thu, 12 Oct 2023 13:59:44 +0000 (09:59 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 12 Oct 2023 19:59:21 +0000 (19:59 +0000)
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 620daa36c5a757a96b6d0ed97e350d00b721cc48)

zebra/kernel_netlink.c

index 6f9c5008afc9bfd51e7ca79242cb525187a66ccd..7c934ed18d124015d93fff063c699f90fdb1d69f 100644 (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: