Thu, Sep 01, 2016 at 02:52:10PM CEST, jtluka(a)redhat.com wrote:
This test is no longer valid as it is. Linux kernel has been patched
to
do more sanity checks and bypass the device check so this test now
returns EADDRNOTAVAIL error.
The kernel patch is:
4eba7bb1d72d9bde67d810d09bf62dc207b63c5c
ipv4: igmp: Allow removing groups from a removed interface
applied, thanks
>
>Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
>---
> test_tools/multicast/offline/sockopt_membership.c | 7 -------
> 1 file changed, 7 deletions(-)
>
>diff --git a/test_tools/multicast/offline/sockopt_membership.c
b/test_tools/multicast/offline/sockopt_membership.c
>index 4f8adc3..2d2f8f1 100644
>--- a/test_tools/multicast/offline/sockopt_membership.c
>+++ b/test_tools/multicast/offline/sockopt_membership.c
>@@ -47,7 +47,6 @@ void test_drop_membership()
> struct ip_mreq mreq;
> mreq.imr_multiaddr.s_addr = inet_addr("127.0.0.1");
> mreq.imr_interface.s_addr = inet_addr("127.0.0.1");
>- struct ip_mreqn mreqn;
>
> test_setsockopt_error("IP_DROP_MEMBERSHIP Bad optlen",
> IP_DROP_MEMBERSHIP, &mreq, 5, EINVAL);
>@@ -58,12 +57,6 @@ void test_drop_membership()
> mreq.imr_interface.s_addr = inet_addr("127.0.0.1");
> test_setsockopt_error("IP_DROP_MEMBERSHIP Not a member",
> IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq), EADDRNOTAVAIL);
>-
>- mreqn.imr_multiaddr.s_addr = inet_addr("239.1.2.3");
>- mreqn.imr_address.s_addr = inet_addr("255.255.255.255");
>- mreqn.imr_ifindex = 500;
>- test_setsockopt_error("IP_DROP_MEMBERSHIP No device found",
>- IP_DROP_MEMBERSHIP, &mreqn, sizeof(mreqn), ENODEV);
> }
>
> int main()
>--
>2.4.11
>_______________________________________________
>LNST-developers mailing list
>lnst-developers(a)lists.fedorahosted.org
>https://lists.fedorahosted.org/admin/lists/lnst-developers@lists.fedorahosted.org