From: anlan_cs Date: Wed, 30 Mar 2022 09:44:36 +0000 (-0400) Subject: zebra: remove unnecessary check for parsing macfdb X-Git-Tag: pim6-testing-20220430~98^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2be18df4dc03b7c231f6a802c36beeca267ca5e5;p=mirror%2Ffrr.git zebra: remove unnecessary check for parsing macfdb Since `NDA_VLAN` is no longer mannually defined in header file, the check for `NDA_VLAN` should be removed. Signed-off-by: anlan_cs --- diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index f2cf9122fa..2ff083dec5 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -3273,7 +3273,7 @@ static int netlink_macfdb_change(struct nlmsghdr *h, int len, ns_id_t ns_id) memcpy(&mac, RTA_DATA(tb[NDA_LLADDR]), ETH_ALEN); - if ((NDA_VLAN <= NDA_MAX) && tb[NDA_VLAN]) { + if (tb[NDA_VLAN]) { vid_present = 1; vid = *(uint16_t *)RTA_DATA(tb[NDA_VLAN]); snprintf(vid_buf, sizeof(vid_buf), " VLAN %u", vid);