Skip to content

Commit

Permalink
zebra: add RTM_xxxCHAIN message codes, ignore
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 620daa3)
  • Loading branch information
Mark Stapp authored and mergify[bot] committed Oct 12, 2023
1 parent bbad836 commit a32e39d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zebra/kernel_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a32e39d

Please sign in to comment.