diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-12-08 13:42:36 +0000 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-12-08 10:06:33 -0800 | 
| commit | d5b77cc20d60238aea03c600e912b99022ea06dd (patch) | |
| tree | 2fbfb156eb1728281b5d5a2879d07ea4239a7115 /bgpd/bgp_mpath.c | |
| parent | 7a6da5bad3be23d6d6d7f98e6e81450d16a0c7a1 (diff) | |
bgpd: Use actual MULTIPATH_NUM as the limitor
BGP uses a second #define that is equal to MULTIPATH_NUM.  There
is no point in having a different #define.  Just consolidate.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_mpath.c')
| -rw-r--r-- | bgpd/bgp_mpath.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index cf92bb1514..496ccdf11b 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -83,11 +83,11 @@ bgp_maximum_paths_unset (struct bgp *bgp, afi_t afi, safi_t safi,    switch (peertype)      {      case BGP_PEER_IBGP: -      bgp->maxpaths[afi][safi].maxpaths_ibgp = BGP_DEFAULT_MAXPATHS; +      bgp->maxpaths[afi][safi].maxpaths_ibgp = MULTIPATH_NUM;        bgp->maxpaths[afi][safi].ibgp_flags = 0;        break;      case BGP_PEER_EBGP: -      bgp->maxpaths[afi][safi].maxpaths_ebgp = BGP_DEFAULT_MAXPATHS; +      bgp->maxpaths[afi][safi].maxpaths_ebgp = MULTIPATH_NUM;        break;      default:        return -1; @@ -429,7 +429,7 @@ bgp_info_mpath_update (struct bgp_node *rn, struct bgp_info *new_best,    char pfx_buf[PREFIX2STR_BUFFER], nh_buf[2][INET6_ADDRSTRLEN];    mpath_changed = 0; -  maxpaths = BGP_DEFAULT_MAXPATHS; +  maxpaths = MULTIPATH_NUM;    mpath_count = 0;    cur_mpath = NULL;    old_mpath_count = 0;  | 
