summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_mpath.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_mpath.h')
-rw-r--r--bgpd/bgp_mpath.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bgpd/bgp_mpath.h b/bgpd/bgp_mpath.h
index 2a84d5e1..83db8264 100644
--- a/bgpd/bgp_mpath.h
+++ b/bgpd/bgp_mpath.h
@@ -24,6 +24,9 @@
#ifndef _QUAGGA_BGP_MPATH_H
#define _QUAGGA_BGP_MPATH_H
+/* Limit on number of configured maxpaths */
+#define BGP_MAXIMUM_MAXPATHS 255
+
/* BGP default maximum-paths */
#define BGP_DEFAULT_MAXPATHS 1
@@ -49,7 +52,8 @@ struct bgp_info_mpath
};
/* Functions to support maximum-paths configuration */
-extern int bgp_maximum_paths_set (struct bgp *, afi_t, safi_t, int, u_int16_t);
+extern int bgp_maximum_paths_set (struct bgp *, afi_t, safi_t, int, u_int16_t,
+ u_int16_t);
extern int bgp_maximum_paths_unset (struct bgp *, afi_t, safi_t, int);
bool bgp_mpath_is_configured_sort (struct bgp *, bgp_peer_sort_t, afi_t, safi_t);
bool bgp_mpath_is_configured (struct bgp *, afi_t, safi_t);