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 General Queries 10f08c3bdfSopenharmony_ci 11f08c3bdfSopenharmony_ciTST_NEEDS_ROOT=1 12f08c3bdfSopenharmony_ciTST_NEEDS_TMPDIR=1 13f08c3bdfSopenharmony_ciTST_SETUP="mcast_setup_normal" 14f08c3bdfSopenharmony_ciTST_CLEANUP="mcast_cleanup" 15f08c3bdfSopenharmony_ciTST_TESTFUNC="do_test" 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_cido_test() 18f08c3bdfSopenharmony_ci{ 19f08c3bdfSopenharmony_ci 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" 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ci # Send General Query from the remote host 22f08c3bdfSopenharmony_ci do_multicast_test_join_single_socket 23f08c3bdfSopenharmony_ci} 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_ci. mcast-lib.sh 26f08c3bdfSopenharmony_citst_run 27