summaryrefslogtreecommitdiffstats
path: root/pimd/pim_join.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-04 17:54:44 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-01-12 18:24:25 +0100
commit6fff2cc620f7762c550b1fe458d35e339608c464 (patch)
treedfa2ecc90125b010c84c93890b3331d9af887def /pimd/pim_join.c
parentpimd: temporarily disable IPv6 types (diff)
downloadfrr-6fff2cc620f7762c550b1fe458d35e339608c464.tar.xz
frr-6fff2cc620f7762c550b1fe458d35e339608c464.zip
pimd: `prefix_sg` => `pim_sgaddr`
Mostly just 2 sed calls: - `sed -e 's%struct prefix_sg%pim_sgaddr%g'` - `sed -e 's%memset(&sg, 0, sizeof(pim_sgaddr));%memset(\&sg, 0, sizeof(sg));%g'` Plus a bunch of fixing whatever that broke. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_join.c')
-rw-r--r--pimd/pim_join.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c
index b2e1b1a28..5e96d39e8 100644
--- a/pimd/pim_join.c
+++ b/pimd/pim_join.c
@@ -55,7 +55,7 @@ static void on_trace(const char *label, struct interface *ifp,
static void recv_join(struct interface *ifp, struct pim_neighbor *neigh,
uint16_t holdtime, struct in_addr upstream,
- struct prefix_sg *sg, uint8_t source_flags)
+ pim_sgaddr *sg, uint8_t source_flags)
{
struct pim_interface *pim_ifp = NULL;
@@ -87,8 +87,8 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh,
struct pim_rpf *rp = RP(pim_ifp->pim, sg->grp);
if (!rp) {
- zlog_warn("%s: Lookup of RP failed for %pPSG4",
- __func__, sg);
+ zlog_warn("%s: Lookup of RP failed for %pSG", __func__,
+ sg);
return;
}
/*
@@ -125,7 +125,7 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh,
static void recv_prune(struct interface *ifp, struct pim_neighbor *neigh,
uint16_t holdtime, struct in_addr upstream,
- struct prefix_sg *sg, uint8_t source_flags)
+ pim_sgaddr *sg, uint8_t source_flags)
{
struct pim_interface *pim_ifp = NULL;
@@ -160,7 +160,7 @@ static void recv_prune(struct interface *ifp, struct pim_neighbor *neigh,
pim_inet4_dump("<received?>", sg->src, received_rp,
sizeof(received_rp));
- zlog_debug("%s: Prune received with RP(%s) for %pPSG4",
+ zlog_debug("%s: Prune received with RP(%s) for %pSG",
__func__, received_rp, sg);
}
@@ -247,7 +247,7 @@ int pim_joinprune_recv(struct interface *ifp, struct pim_neighbor *neigh,
/* Scan groups */
for (group = 0; group < msg_num_groups; ++group) {
- struct prefix_sg sg;
+ pim_sgaddr sg;
uint8_t msg_source_flags;
uint16_t msg_num_joined_sources;
uint16_t msg_num_pruned_sources;
@@ -255,7 +255,7 @@ int pim_joinprune_recv(struct interface *ifp, struct pim_neighbor *neigh,
struct pim_ifchannel *starg_ch = NULL, *sg_ch = NULL;
bool filtered = false;
- memset(&sg, 0, sizeof(struct prefix_sg));
+ memset(&sg, 0, sizeof(sg));
addr_offset = pim_parse_addr_group(&sg, buf, pastend - buf);
if (addr_offset < 1) {
return -5;