diff options
| author | Mladen Sablic <mladen.sablic@gmail.com> | 2018-02-27 23:16:45 +0100 | 
|---|---|---|
| committer | Mladen Sablic <mladen.sablic@gmail.com> | 2018-03-08 09:40:48 +0100 | 
| commit | f83f396624b34c5e50241910f6bdbfacb4249559 (patch) | |
| tree | 65279c6574eabd9d534f8fa6c135f21bf9bcfba2 /pimd/pim_igmpv3.c | |
| parent | 1708ca553b9dccb4e88fffd867b85f5e51cc0827 (diff) | |
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_igmpv3.c')
| -rw-r--r-- | pimd/pim_igmpv3.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c index ecde546c06..3360e36b4a 100644 --- a/pimd/pim_igmpv3.c +++ b/pimd/pim_igmpv3.c @@ -1874,6 +1874,9 @@ int igmp_v3_recv_report(struct igmp_sock *igmp, struct in_addr from,  	int local_ncb = 0;  	struct pim_interface *pim_ifp; +	if (igmp->mtrace_only) +		return 0; +  	pim_ifp = igmp->interface->info;  	if (igmp_msg_len < IGMP_V3_MSG_MIN_SIZE) {  | 
