diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-06 15:37:20 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-06 16:11:38 +0100 |
commit | 892fedb611bd1d0ee5c4674069baa8666f7d0255 (patch) | |
tree | 57ab49d2884dab757f2cc1d88d332ca2be3ecbfc /bgpd/bgp_mpath.c | |
parent | tools: Add coccinelle script to replace all bgp_flag_* functions (diff) | |
download | frr-892fedb611bd1d0ee5c4674069baa8666f7d0255.tar.xz frr-892fedb611bd1d0ee5c4674069baa8666f7d0255.zip |
bgpd: Replace bgp_flag_* to [UN]SET/CHECK_FLAG macros
Most of the code uses macros, thus let's keep the code unified.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r-- | bgpd/bgp_mpath.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index 6bc8134f3..9e73acdc0 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -721,8 +721,9 @@ void bgp_path_info_mpath_aggregate_update(struct bgp_path_info *new_best, attr = *new_best->attr; - if (new_best->peer && bgp_flag_check(new_best->peer->bgp, - BGP_FLAG_MULTIPATH_RELAX_AS_SET)) { + if (new_best->peer + && CHECK_FLAG(new_best->peer->bgp->flags, + BGP_FLAG_MULTIPATH_RELAX_AS_SET)) { /* aggregate attribute from multipath constituents */ aspath = aspath_dup(attr.aspath); |