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]>
  • Loading branch information
Mark Stapp committed Oct 12, 2023
1 parent 9bc4d9e commit 620daa3
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 620daa3

Please sign in to comment.