Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2019 13:17:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 242677] multicast: setsockopt(...IP_DROP_MEMBERSHIP...) doesn't lead to sending IGMP packet.
Message-ID:  <bug-242677-7501-NPFeSOFaJ8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242677-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242677-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242677

--- Comment #4 from Aleksandr Fedorov <aleksandr.fedorov@itglobal.com> ---
It seems that regression was introduced at r349369:
https://svnweb.freebsd.org/base/head/sys/netinet/in_mcast.c?r1=3D347691&r2=
=3D349369&pathrev=3D349369

I tested ipv6 version with your patch, it's look good.

Before patch:
# tcpdump -i igb1 -vvv
tcpdump: listening on igb1, link-type EN10MB (Ethernet), capture size 262144
bytes
16:12:20.141207 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.55 tell 192.168.1.55, length 28
16:12:22.359877 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
16:12:24.479711 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
16:12:32.945688 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
16:12:33.793701 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]

After patch:
# tcpdump -i igb1 -vvv
tcpdump: listening on igb1, link-type EN10MB (Ethernet), capture size 262144
bytes
15:57:34.351600 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
192.168.1.55 tell 192.168.1.55, length 28
15:57:36.607299 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
15:57:37.031254 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
15:57:41.676026 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 block { }]
15:57:43.158268 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 block { }]
15:57:46.941264 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
15:57:50.121248 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 to_ex { }]
15:57:52.029263 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 block { }]
15:57:54.139271 IP6 (hlim 1, next-header Options (0) payload length: 36)
fe80::aa1e:84ff:fe93:d5f5 > ff02::16: HBH (pa
dn)(rtalert: 0x0000)  [icmp6 sum ok] ICMP6, multicast listener report v2, 1
group record(s) [gaddr ff12::1 block { }]

I also checked vmstat -m |grep multi and didn't found any memory leaks.

Thanks!

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242677-7501-NPFeSOFaJ8>