mcast-queryfld01.sh 805 B

1234567891011121314151617181920212223242526
  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. TST_NEEDS_ROOT=1
  11. TST_NEEDS_TMPDIR=1
  12. TST_SETUP="mcast_setup_normal"
  13. TST_CLEANUP="mcast_cleanup"
  14. TST_TESTFUNC="do_test"
  15. . mcast-lib.sh
  16. do_test()
  17. {
  18. 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"
  19. # Send General Query from the remote host
  20. do_multicast_test_join_single_socket
  21. }
  22. tst_run