]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_addpath.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / bgp_addpath.h
index 786873a004ee6c47fda4bd9e764fa73e9f80b699..909a9710c44dbc4151c0a04551b6ed21a9edea6b 100644 (file)
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Addpath TX ID selection, and related utilities
  * Copyright (C) 2018  Amazon.com, Inc. or its affiliates
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; see the file COPYING; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _QUAGGA_BGPD_TX_ADDPATH_H
@@ -32,8 +19,8 @@
 
 void bgp_addpath_init_bgp_data(struct bgp_addpath_bgp_data *d);
 
-int bgp_addpath_is_addpath_used(struct bgp_addpath_bgp_data *d, afi_t afi,
-                             safi_t safi);
+bool bgp_addpath_is_addpath_used(struct bgp_addpath_bgp_data *d, afi_t afi,
+                                safi_t safi);
 
 void bgp_addpath_free_node_data(struct bgp_addpath_bgp_data *bd,
                              struct bgp_addpath_node_data *nd,
@@ -43,7 +30,7 @@ void bgp_addpath_free_info_data(struct bgp_addpath_info_data *d,
                              struct bgp_addpath_node_data *nd);
 
 
-int bgp_addpath_info_has_ids(struct bgp_addpath_info_data *d);
+bool bgp_addpath_info_has_ids(struct bgp_addpath_info_data *d);
 
 uint32_t bgp_addpath_id_for_peer(struct peer *peer, afi_t afi, safi_t safi,
                                struct bgp_addpath_info_data *d);
@@ -51,21 +38,21 @@ uint32_t bgp_addpath_id_for_peer(struct peer *peer, afi_t afi, safi_t safi,
 const struct bgp_addpath_strategy_names *
 bgp_addpath_names(enum bgp_addpath_strat strat);
 
-int bgp_addpath_dmed_required(int strategy);
+bool bgp_addpath_dmed_required(int strategy);
 
 /*
  * Return true if this is a path we should advertise due to a configured
  * addpath-tx knob
  */
-int bgp_addpath_tx_path(enum bgp_addpath_strat strat,
-                           struct bgp_path_info *pi);
+bool bgp_addpath_tx_path(enum bgp_addpath_strat strat,
+                        struct bgp_path_info *pi);
 /*
  * Change the type of addpath used for a peer.
  */
 void bgp_addpath_set_peer_type(struct peer *peer, afi_t afi, safi_t safi,
                              enum bgp_addpath_strat addpath_type);
 
-void bgp_addpath_update_ids(struct bgp *bgp, struct bgp_node *bn, afi_t afi,
+void bgp_addpath_update_ids(struct bgp *bgp, struct bgp_dest *dest, afi_t afi,
                            safi_t safi);
 
 void bgp_addpath_type_changed(struct bgp *bgp);