summaryrefslogtreecommitdiff
path: root/pimd/pim_assert.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_assert.c
parentbedc005a7ae9fd9e087f69a55f30daf47ff9d4a9 (diff)
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_assert.c')
-rw-r--r--pimd/pim_assert.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c
index a335bc8c1a..79b46994aa 100644
--- a/pimd/pim_assert.c
+++ b/pimd/pim_assert.c
@@ -141,9 +141,9 @@ static int dispatch_assert(struct interface *ifp, struct in_addr source_addr,
struct pim_assert_metric recv_metric)
{
struct pim_ifchannel *ch;
- struct prefix_sg sg;
+ pim_sgaddr sg;
- memset(&sg, 0, sizeof(struct prefix_sg));
+ memset(&sg, 0, sizeof(sg));
sg.src = source_addr;
sg.grp = group_addr;
ch = pim_ifchannel_add(ifp, &sg, 0, 0);
@@ -215,7 +215,7 @@ static int dispatch_assert(struct interface *ifp, struct in_addr source_addr,
int pim_assert_recv(struct interface *ifp, struct pim_neighbor *neigh,
struct in_addr src_addr, uint8_t *buf, int buf_size)
{
- struct prefix_sg sg;
+ pim_sgaddr sg;
struct prefix msg_source_addr;
struct pim_assert_metric msg_metric;
int offset;
@@ -231,7 +231,7 @@ int pim_assert_recv(struct interface *ifp, struct pim_neighbor *neigh,
/*
Parse assert group addr
*/
- memset(&sg, 0, sizeof(struct prefix_sg));
+ memset(&sg, 0, sizeof(sg));
offset = pim_parse_addr_group(&sg, curr, curr_size);
if (offset < 1) {
char src_str[INET_ADDRSTRLEN];