mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 07:48:25 +00:00
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:
parent
44a84850a9
commit
2be18df4dc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user