summaryrefslogtreecommitdiff
path: root/pimd/pim_zlookup.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_zlookup.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_zlookup.c')
-rw-r--r--pimd/pim_zlookup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c
index abf1119ac5..755b9b1320 100644
--- a/pimd/pim_zlookup.c
+++ b/pimd/pim_zlookup.c
@@ -524,14 +524,14 @@ int pim_zlookup_sg_statistics(struct channel_oil *c_oil)
struct stream *s = zlookup->obuf;
uint16_t command = 0;
unsigned long long lastused;
- struct prefix_sg sg;
+ pim_sgaddr sg;
int count = 0;
int ret;
struct interface *ifp =
pim_if_find_by_vif_index(c_oil->pim, c_oil->oil.mfcc_parent);
if (PIM_DEBUG_ZEBRA) {
- struct prefix_sg more;
+ pim_sgaddr more;
more.src = c_oil->oil.mfcc_origin;
more.grp = c_oil->oil.mfcc_mcastgrp;
@@ -587,7 +587,7 @@ int pim_zlookup_sg_statistics(struct channel_oil *c_oil)
if (sg.src.s_addr != c_oil->oil.mfcc_origin.s_addr
|| sg.grp.s_addr != c_oil->oil.mfcc_mcastgrp.s_addr) {
if (PIM_DEBUG_ZEBRA) {
- struct prefix_sg more;
+ pim_sgaddr more;
more.src = c_oil->oil.mfcc_origin;
more.grp = c_oil->oil.mfcc_mcastgrp;