summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmpv2.c
diff options
context:
space:
mode:
authorMladen Sablic <mladen.sablic@gmail.com>2018-02-27 23:16:45 +0100
committerMladen Sablic <mladen.sablic@gmail.com>2018-03-08 09:40:48 +0100
commitf83f396624b34c5e50241910f6bdbfacb4249559 (patch)
tree65279c6574eabd9d534f8fa6c135f21bf9bcfba2 /pimd/pim_igmpv2.c
parentMerge pull request #1826 from qlyoung/lsan-suppressions (diff)
downloadfrr-f83f396624b34c5e50241910f6bdbfacb4249559.tar.xz
frr-f83f396624b34c5e50241910f6bdbfacb4249559.zip
pimd: mtrace only IGMP sockets
Feature of mtrace only IGMP sockets on pim sm and pim ssm interfaces. Modifed IGMP socket creation and show igmp interface command output. Signed-off-by: Mladen Sablic <mladen.sablic@gmail.com>
Diffstat (limited to 'pimd/pim_igmpv2.c')
-rw-r--r--pimd/pim_igmpv2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_igmpv2.c b/pimd/pim_igmpv2.c
index efa36e618..dbbe83a96 100644
--- a/pimd/pim_igmpv2.c
+++ b/pimd/pim_igmpv2.c
@@ -111,6 +111,9 @@ int igmp_v2_recv_report(struct igmp_sock *igmp, struct in_addr from,
on_trace(__PRETTY_FUNCTION__, igmp->interface, from);
+ if (igmp->mtrace_only)
+ return 0;
+
if (igmp_msg_len != IGMP_V12_MSG_SIZE) {
zlog_warn(
"Recv IGMPv2 REPORT from %s on %s: size=%d other than correct=%d",
@@ -154,6 +157,9 @@ int igmp_v2_recv_leave(struct igmp_sock *igmp, struct in_addr from,
on_trace(__PRETTY_FUNCTION__, igmp->interface, from);
+ if (igmp->mtrace_only)
+ return 0;
+
if (igmp_msg_len != IGMP_V12_MSG_SIZE) {
zlog_warn(
"Recv IGMPv2 LEAVE from %s on %s: size=%d other than correct=%d",