]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.c
bgpd: EVPN crash because of incorrect nexthop for IPv6 prefix
authorAmeya Dharkar <adharkar@vmware.com>
Thu, 6 Feb 2020 21:47:43 +0000 (13:47 -0800)
committerAmeya Dharkar <adharkar@vmware.com>
Thu, 6 Feb 2020 21:51:46 +0000 (13:51 -0800)
commit4e72ff729d0399e707ba9d12d99667251b352384
tree425a25f4dda94b6d8fe7482e4924d0ba5b29cc9b
parent5bf7fe566d74c1093e0c032436a657b4f44ad5f6
bgpd: EVPN crash because of incorrect nexthop for IPv6 prefix

RCA:
When we install IPv6 prefix imported from EVPN RT-5 in vrf, nexthop of the IPv6
route should be IPv4 mapped IPv6 address. In function
install_evpn_route_entry_in_vrf, we generate a new attribute with IPv4 mapped
IPv6 nexthop, but we use parent->attr while creating the actual route.
Thus, Ipv4 nexthop is assigned to this route.
Because of this incorrect nexthop, we observed a crash in function
update_ipv6nh_for_route_install.

Fix:
Pass the new attribute with Ipv4 mapped Ipv6 nexthop to
bgp_create_evpn_bgp_path_info

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
bgpd/bgp_evpn.c