mcast-group-source-filter 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # Copyright (c) 2017-2018 Petr Vorel <pvorel@suse.cz>
  3. # Copyright (c) International Business Machines Corp., 2006
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License as
  7. # published by the Free Software Foundation; either version 2 of
  8. # the License, or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it would be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. # Setup: testcases/network/stress/README
  19. #
  20. # Author: Mitsuru Chinen <mitch@jp.ibm.com>
  21. . mcast-lib.sh
  22. do_setup()
  23. {
  24. mcast_setup $MCASTNUM_NORMAL
  25. }
  26. do_test()
  27. {
  28. tst_res TINFO "joining and leaving the same IPv$TST_IPVER multicast group with a different source filters on $MCASTNUM_NORMAL sockets in $NS_TIMES times"
  29. do_multicast_test_join_leave $MCASTNUM_NORMAL true
  30. }
  31. tst_run