Merge pull request #11176 from anlancs/fix/bgpd-remove-for-type2-prefix

bgpd: remove unncessary check for evpn
This commit is contained in:
Donatas Abraitis 2022-05-12 13:28:51 +03:00 committed by GitHub
commit 601db492b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,7 +450,6 @@ static inline void build_evpn_type2_prefix(struct prefix_evpn *p,
p->prefix.route_type = BGP_EVPN_MAC_IP_ROUTE;
memcpy(&p->prefix.macip_addr.mac.octet, mac->octet, ETH_ALEN);
p->prefix.macip_addr.ip.ipa_type = IPADDR_NONE;
if (ip)
memcpy(&p->prefix.macip_addr.ip, ip, sizeof(*ip));
}