icmp-uni-basic.sh 518 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. # Copyright (c) 2018 Petr Vorel <pvorel@suse.cz>
  4. # Copyright (c) 2016 Red Hat Inc., All Rights Reserved.
  5. # Copyright (c) International Business Machines Corp., 2005
  6. # Author: Hangbin Liu <haliu@redhat.com>
  7. TST_TESTFUNC=do_test
  8. TST_SETUP=do_setup
  9. TST_CLEANUP=tst_ipsec_cleanup
  10. . ipsec_lib.sh
  11. do_setup()
  12. {
  13. tst_ipsec_setup
  14. PING_MAX="$IPSEC_REQUESTS"
  15. tst_res TINFO "Sending ICMP messages"
  16. }
  17. do_test()
  18. {
  19. tst_ping $(tst_iface) $(tst_ipaddr rhost) $2
  20. }
  21. tst_run