summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_adv.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-03-14 11:01:56 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-03-14 11:01:56 +0100
commit59d6b4d6ab92e3df0888b37c90e6c6b177fb3b65 (patch)
treeab78b4447a8cd7a7629fe3c12e9d2c8c21e5d1a3 /bgpd/bgp_updgrp_adv.c
parentMerge pull request #12978 from donaldsharp/multicast_address (diff)
downloadfrr-59d6b4d6ab92e3df0888b37c90e6c6b177fb3b65.tar.xz
frr-59d6b4d6ab92e3df0888b37c90e6c6b177fb3b65.zip
bgpd: Rename bgp_afi_node_lookup() to bgp_safi_node_lookup()
afi not used in this function, reduce a bit. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_updgrp_adv.c')
-rw-r--r--bgpd/bgp_updgrp_adv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c
index aa3121257..d8e0e7875 100644
--- a/bgpd/bgp_updgrp_adv.c
+++ b/bgpd/bgp_updgrp_adv.c
@@ -918,8 +918,8 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
memset(&p, 0, sizeof(p));
p.family = afi2family(afi);
p.prefixlen = 0;
- dest = bgp_afi_node_lookup(bgp->rib[afi][safi_rib], afi, safi_rib, &p,
- NULL);
+ dest = bgp_safi_node_lookup(bgp->rib[afi][safi_rib], safi_rib, &p,
+ NULL);
if (withdraw) {
/* Withdraw the default route advertised using default