1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2006 International Business Machines Corp. 4# Copyright (c) 2020 Joerg Vehlow <joerg.vehlow@aox-tech.de> 5# Copyright (c) 2021 Petr Vorel <pvorel@suse.cz> 6# Author: Mitsuru Chinen <mitch@jp.ibm.com> 7# 8# Verify that the kernel is not crashed when joining a multicast group 9# on a single socket, then receiving a large number of Multicast Address 10# Specific Query 11 12TST_NEEDS_ROOT=1 13TST_NEEDS_TMPDIR=1 14TST_SETUP="mcast_setup_normal" 15TST_CLEANUP="mcast_cleanup" 16TST_TESTFUNC="do_test" 17. mcast-lib.sh 18 19do_test() 20{ 21 tst_res TINFO "joining an IPv${TST_IPVER} multicast group on a single socket, then receiving a large number of Multicast Address Specific Query in $NS_DURATION seconds" 22 23 local extra="-m $MCAST_IPV4_ADDR" 24 [ "$TST_IPV6" ] && extra="-D $MCAST_IPV6_ADDR" 25 26 # Send IGMP Multicast Address Specific Query from the remote host 27 do_multicast_test_join_single_socket "$extra" 28} 29 30tst_run 31