diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-02 22:41:30 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-09 20:14:25 +0200 |
commit | 4b7e60662595e43aaf41046746fcaa97d17abb5d (patch) | |
tree | 0d991048b7b8e4d1a773141711f75173fee14059 /bgpd/bgp_label.c | |
parent | bgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX (diff) | |
download | frr-4b7e60662595e43aaf41046746fcaa97d17abb5d.tar.xz frr-4b7e60662595e43aaf41046746fcaa97d17abb5d.zip |
bgpd: Convert `struct bgp_info` to `struct bgp_path_info`
Do a straight conversion of `struct bgp_info` to `struct bgp_path_info`.
This commit will setup the rename of variables as well.
This is being done because `struct bgp_info` is not descriptive
of what this data actually is. It is path information for routes
that we keep to build the actual routes nexthops plus some extra
information.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_label.c')
-rw-r--r-- | bgpd/bgp_label.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_label.c b/bgpd/bgp_label.c index ba059d66e..0764280d9 100644 --- a/bgpd/bgp_label.c +++ b/bgpd/bgp_label.c @@ -94,7 +94,7 @@ int bgp_parse_fec_update(void) return 1; } -mpls_label_t bgp_adv_label(struct bgp_node *rn, struct bgp_info *ri, +mpls_label_t bgp_adv_label(struct bgp_node *rn, struct bgp_path_info *ri, struct peer *to, afi_t afi, safi_t safi) { struct peer *from; @@ -120,7 +120,8 @@ mpls_label_t bgp_adv_label(struct bgp_node *rn, struct bgp_info *ri, return rn->local_label; } -void bgp_reg_dereg_for_label(struct bgp_node *rn, struct bgp_info *ri, int reg) +void bgp_reg_dereg_for_label(struct bgp_node *rn, struct bgp_path_info *ri, + int reg) { struct stream *s; struct prefix *p; |