diff options
author | Louis Scalbert <louis.scalbert@6wind.com> | 2022-04-29 19:41:57 +0200 |
---|---|---|
committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-02-22 18:20:34 +0100 |
commit | 58c1206112273d879dcbdc001fccd82cc19db4e5 (patch) | |
tree | 32de1df899aa3485dcb1514946faf836a17e26a4 /bgpd/bgp_zebra.c | |
parent | Merge pull request #15401 from idryzhov/fix-nb-crash (diff) | |
download | frr-58c1206112273d879dcbdc001fccd82cc19db4e5.tar.xz frr-58c1206112273d879dcbdc001fccd82cc19db4e5.zip |
bgpd: move mp_nexthop_prefer_global boolean attribute to nh_flags
Move mp_nexthop_prefer_global boolean attribute to nh_flags. It does
not currently save memory because of the packing.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 0304c4383..26194f860 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -943,7 +943,8 @@ bgp_path_info_to_ipv6_nexthop(struct bgp_path_info *path, ifindex_t *ifindex) || path->attr->mp_nexthop_len == BGP_ATTR_NHLEN_VPNV6_GLOBAL_AND_LL) { /* Check if route-map is set to prefer global over link-local */ - if (path->attr->mp_nexthop_prefer_global) { + if (CHECK_FLAG(path->attr->nh_flags, + BGP_ATTR_NH_MP_PREFER_GLOBAL)) { nexthop = &path->attr->mp_nexthop_global; if (IN6_IS_ADDR_LINKLOCAL(nexthop)) *ifindex = path->attr->nh_ifindex; |