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