Skip to content

Commit

Permalink
Merge pull request #4147 from mjstapp/fix_pim_zebra_warning
Browse files Browse the repository at this point in the history
pimd: fix compile warnings
  • Loading branch information
donaldsharp committed Apr 16, 2019
2 parents 0f5be84 + d1a1b09 commit 336b988
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pimd/pim_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ void igmp_source_forward_start(struct pim_instance *pim,

if (!source->source_channel_oil) {
struct in_addr vif_source;
struct prefix nht_p, src, grp;
struct prefix src, grp;
struct pim_nexthop nexthop;
struct pim_upstream *up = NULL;

Expand All @@ -950,11 +950,6 @@ void igmp_source_forward_start(struct pim_instance *pim,
}

else {
/* Register addr with Zebra NHT */
nht_p.family = AF_INET;
nht_p.prefixlen = IPV4_MAX_BITLEN;
nht_p.u.prefix4 = vif_source;

src.family = AF_INET;
src.prefixlen = IPV4_MAX_BITLEN;
src.u.prefix4 = vif_source; // RP or Src address
Expand Down Expand Up @@ -1183,12 +1178,8 @@ void pim_forward_start(struct pim_ifchannel *ch)
as part of mroute_del called by pim_forward_stop.
*/
if ((up->upstream_addr.s_addr != INADDR_ANY) && (!up->channel_oil)) {
struct prefix nht_p, src, grp;
struct prefix src, grp;

/* Register addr with Zebra NHT */
nht_p.family = AF_INET;
nht_p.prefixlen = IPV4_MAX_BITLEN;
nht_p.u.prefix4 = up->upstream_addr;
grp.family = AF_INET;
grp.prefixlen = IPV4_MAX_BITLEN;
grp.u.prefix4 = up->sg.grp;
Expand Down

0 comments on commit 336b988

Please sign in to comment.