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 <vic.lan@pica8.com>
This commit is contained in:
anlan_cs 2022-03-30 05:44:36 -04:00
parent 44a84850a9
commit 2be18df4dc

View File

@ -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); 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_present = 1;
vid = *(uint16_t *)RTA_DATA(tb[NDA_VLAN]); vid = *(uint16_t *)RTA_DATA(tb[NDA_VLAN]);
snprintf(vid_buf, sizeof(vid_buf), " VLAN %u", vid); snprintf(vid_buf, sizeof(vid_buf), " VLAN %u", vid);