diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-26 19:11:58 -0400 | 
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-06-23 17:32:52 +0200 | 
| commit | 9bcb3eef541180a17341d1d4510586efc35711db (patch) | |
| tree | 686e6d7721a180a168cb3353e2c900b63069e6c3 /bgpd/bgp_flowspec_util.c | |
| parent | 6d7824f29c4aad88009ac1dfe0491de31c01fcb3 (diff) | |
bgp: rename bgp_node to bgp_dest
This is the bulk part extracted from "bgpd: Convert from `struct
bgp_node` to `struct bgp_dest`".  It should not result in any functional
change.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_flowspec_util.c')
| -rw-r--r-- | bgpd/bgp_flowspec_util.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_flowspec_util.c b/bgpd/bgp_flowspec_util.c index 9d824a8641..764d2f87ae 100644 --- a/bgpd/bgp_flowspec_util.c +++ b/bgpd/bgp_flowspec_util.c @@ -603,11 +603,12 @@ bool bgp_flowspec_get_first_nh(struct bgp *bgp, struct bgp_path_info *pi,  {  	struct bgp_pbr_entry_main api;  	int i; -	struct bgp_node *rn = pi->net; +	struct bgp_dest *dest = pi->net;  	struct bgp_pbr_entry_action *api_action;  	memset(&api, 0, sizeof(struct bgp_pbr_entry_main)); -	if (bgp_pbr_build_and_validate_entry(bgp_node_get_prefix(rn), pi, &api) +	if (bgp_pbr_build_and_validate_entry(bgp_dest_get_prefix(dest), pi, +					     &api)  	    < 0)  		return true;  	for (i = 0; i < api.action_num; i++) {  | 
