mcast-queryfld02.sh 958 B

123456789101112131415161718192021222324252627282930
  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 Multicast Address
  10. # Specific Query
  11. TST_NEEDS_ROOT=1
  12. TST_NEEDS_TMPDIR=1
  13. TST_SETUP="mcast_setup_normal"
  14. TST_CLEANUP="mcast_cleanup"
  15. TST_TESTFUNC="do_test"
  16. . mcast-lib.sh
  17. do_test()
  18. {
  19. 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"
  20. local extra="-m $MCAST_IPV4_ADDR"
  21. [ "$TST_IPV6" ] && extra="-D $MCAST_IPV6_ADDR"
  22. # Send IGMP Multicast Address Specific Query from the remote host
  23. do_multicast_test_join_single_socket "$extra"
  24. }
  25. tst_run