diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-04 17:54:44 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-12 18:24:25 +0100 |
commit | 6fff2cc620f7762c550b1fe458d35e339608c464 (patch) | |
tree | dfa2ecc90125b010c84c93890b3331d9af887def /pimd/pim_igmp_mtrace.c | |
parent | pimd: temporarily disable IPv6 types (diff) | |
download | frr-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_igmp_mtrace.c')
-rw-r--r-- | pimd/pim_igmp_mtrace.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pimd/pim_igmp_mtrace.c b/pimd/pim_igmp_mtrace.c index 65a8ca4e4..1518ef232 100644 --- a/pimd/pim_igmp_mtrace.c +++ b/pimd/pim_igmp_mtrace.c @@ -106,13 +106,13 @@ static bool mtrace_fwd_info(struct pim_instance *pim, struct igmp_mtrace_rsp *rspp, struct interface **ifpp) { - struct prefix_sg sg; + pim_sgaddr sg; struct pim_upstream *up; struct interface *ifp_in; struct in_addr nh_addr; uint32_t total; - memset(&sg, 0, sizeof(struct prefix_sg)); + memset(&sg, 0, sizeof(sg)); sg.src = mtracep->src_addr; sg.grp = mtracep->grp_addr; @@ -426,14 +426,14 @@ static int mtrace_un_forward_packet(struct pim_instance *pim, struct ip *ip_hdr, static int mtrace_mc_forward_packet(struct pim_instance *pim, struct ip *ip_hdr) { - struct prefix_sg sg; + pim_sgaddr sg; struct channel_oil *c_oil; struct listnode *chnode; struct listnode *chnextnode; struct pim_ifchannel *ch = NULL; int ret = -1; - memset(&sg, 0, sizeof(struct prefix_sg)); + memset(&sg, 0, sizeof(sg)); sg.grp = ip_hdr->ip_dst; c_oil = pim_find_channel_oil(pim, &sg); @@ -477,14 +477,14 @@ static int mtrace_send_mc_response(struct pim_instance *pim, struct igmp_mtrace *mtracep, size_t mtrace_len) { - struct prefix_sg sg; + pim_sgaddr sg; struct channel_oil *c_oil; struct listnode *chnode; struct listnode *chnextnode; struct pim_ifchannel *ch = NULL; int ret = -1; - memset(&sg, 0, sizeof(struct prefix_sg)); + memset(&sg, 0, sizeof(sg)); sg.grp = mtracep->rsp_addr; c_oil = pim_find_channel_oil(pim, &sg); |