summaryrefslogtreecommitdiff
path: root/lib/compiler.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-02-11 12:06:54 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-02-11 12:25:01 +0200
commit6b9265a3f2749def6e2f97b980be665789e3e49d (patch)
treefc14709b4131b330c153edd5d84a9e1ac860a2b0 /lib/compiler.h
parentde6223a98d7cd3a38a19f0c97a8692d6ea5e17bc (diff)
bgpd: Print IPv4 nexthop for IPv6 prefixes under bgp_table_map_apply()
With latest kernels that's possible to have IPv6 routes with IPv4 nexthops. We already handled this in bgp_zebra_announce(): nexthop = bgp_path_info_to_ipv6_nexthop(mpinfo_cp, &ifindex); if (!nexthop) nh_updated = update_ipv4nh_for_route_install( nh_othervrf, nh_othervrf ? info->extra->bgp_orig : bgp, &mpinfo_cp->attr->nexthop, mpinfo_cp->attr, is_evpn, api_nh); else nh_updated = update_ipv6nh_for_route_install( nh_othervrf, nh_othervrf ? info->extra->bgp_orig : bgp, nexthop, ifindex, mpinfo, info, is_evpn, api_nh); Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/compiler.h')
0 files changed, 0 insertions, 0 deletions