summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nexthop.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-02 22:41:30 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-09 20:14:25 +0200
commit4b7e60662595e43aaf41046746fcaa97d17abb5d (patch)
tree0d991048b7b8e4d1a773141711f75173fee14059 /bgpd/bgp_nexthop.h
parentbgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX (diff)
downloadfrr-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_nexthop.h')
-rw-r--r--bgpd/bgp_nexthop.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/bgpd/bgp_nexthop.h b/bgpd/bgp_nexthop.h
index 1cb05bc85..f06fae570 100644
--- a/bgpd/bgp_nexthop.h
+++ b/bgpd/bgp_nexthop.h
@@ -63,7 +63,7 @@ struct bgp_nexthop_cache {
struct bgp_node *node;
void *nht_info; /* In BGP, peer session */
- LIST_HEAD(path_list, bgp_info) paths;
+ LIST_HEAD(path_list, bgp_path_info) paths;
unsigned int path_count;
struct bgp *bgp;
};
@@ -74,8 +74,6 @@ struct tip_addr {
int refcnt;
};
-extern int bgp_nexthop_lookup(afi_t, struct peer *peer, struct bgp_info *,
- int *, int *);
extern void bgp_connected_add(struct bgp *bgp, struct connected *c);
extern void bgp_connected_delete(struct bgp *bgp, struct connected *c);
extern int bgp_subgrp_multiaccess_check_v4(struct in_addr nexthop,