blob: de6461fda19e942973a294b7fecd1e85c8520542 [file] [log] [blame]
Josh Bailey165b5ff2011-07-20 20:43:22 -07001/* $QuaggaId: Format:%an, %ai, %h$ $
2 *
3 * BGP Multipath
4 * Copyright (C) 2010 Google Inc.
5 *
6 * This file is part of Quagga
7 *
8 * Quagga is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * Quagga is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with Quagga; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24#ifndef _QUAGGA_BGP_MPATH_H
25#define _QUAGGA_BGP_MPATH_H
26
27/* BGP default maximum-paths */
28#define BGP_DEFAULT_MAXPATHS 1
29
30/* Functions to support maximum-paths configuration */
31extern int bgp_maximum_paths_set (struct bgp *, afi_t, safi_t, int, u_int16_t);
32extern int bgp_maximum_paths_unset (struct bgp *, afi_t, safi_t, int);
33
Josh Bailey96450fa2011-07-20 20:45:12 -070034/* Functions used by bgp_best_selection to record current
35 * multipath selections
36 */
37extern void bgp_mp_list_init (struct list *);
38extern void bgp_mp_list_clear (struct list *);
39extern void bgp_mp_list_add (struct list *, struct bgp_info *);
40
Josh Bailey165b5ff2011-07-20 20:43:22 -070041#endif /* _QUAGGA_BGP_MPATH_H */