Skip to content

Commit

Permalink
pim6d: Make pim_zlookup_sg_statistics available for v6
Browse files Browse the repository at this point in the history
Since pim_zlookup.c is available for pimv6,
Call pim_zlookup_sg_statistics api for v6.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
  • Loading branch information
mobash-rasool committed Apr 28, 2022
1 parent 51f4fd9 commit 0696c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pimd/pim_mroute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,14 +1047,14 @@ void pim_mroute_update_counters(struct channel_oil *c_oil)

memset(&sgreq, 0, sizeof(sgreq));

pim_zlookup_sg_statistics(c_oil);

#if PIM_IPV == 4
sgreq.src = *oil_origin(c_oil);
sgreq.grp = *oil_mcastgrp(c_oil);
pim_zlookup_sg_statistics(c_oil);
#else
sgreq.src = c_oil->oil.mf6cc_origin;
sgreq.grp = c_oil->oil.mf6cc_mcastgrp;
/* TODO Zlookup_sg_statistics for V6 to be added */
#endif
if (ioctl(pim->mroute_socket, PIM_SIOCGETSGCNT, &sgreq)) {
pim_sgaddr sg;
Expand Down
2 changes: 0 additions & 2 deletions pimd/pim_zlookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ void pim_zlookup_show_ip_multicast(struct vty *vty)
}
}

#if PIM_IPV == 4
int pim_zlookup_sg_statistics(struct channel_oil *c_oil)
{
struct stream *s = zlookup->obuf;
Expand Down Expand Up @@ -583,4 +582,3 @@ int pim_zlookup_sg_statistics(struct channel_oil *c_oil)

return 0;
}
#endif

0 comments on commit 0696c2f

Please sign in to comment.