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 <[email protected]> 5# Copyright (c) 2021 Petr Vorel <[email protected]> 6# Author: Mitsuru Chinen <[email protected]> 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 18do_test() 19{ 20 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" 21 22 local extra="-m $MCAST_IPV4_ADDR" 23 [ "$TST_IPV6" ] && extra="-D $MCAST_IPV6_ADDR" 24 25 # Send IGMP Multicast Address Specific Query from the remote host 26 do_multicast_test_join_single_socket "$extra" 27} 28 29. mcast-lib.sh 30tst_run 31