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 General Queries 10 11TST_NEEDS_ROOT=1 12TST_NEEDS_TMPDIR=1 13TST_SETUP="mcast_setup_normal" 14TST_CLEANUP="mcast_cleanup" 15TST_TESTFUNC="do_test" 16. mcast-lib.sh 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 General Queries in $NS_DURATION seconds" 21 22 # Send General Query from the remote host 23 do_multicast_test_join_single_socket 24} 25 26tst_run 27