icmp-uni-vti.sh 476 B

123456789101112131415161718192021222324
  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 Oracle and/or its affiliates. All Rights Reserved.
  5. # Author: Alexey Kodanev <alexey.kodanev@oracle.com>
  6. TST_TESTFUNC=do_test
  7. TST_SETUP=do_setup
  8. TST_CLEANUP=tst_ipsec_cleanup
  9. . ipsec_lib.sh
  10. do_setup()
  11. {
  12. tst_ipsec_setup_vti
  13. PING_MAX="$IPSEC_REQUESTS"
  14. tst_res TINFO "Sending ICMP messages"
  15. }
  16. do_test()
  17. {
  18. tst_ping $tst_vti $ip_rmt_tun $2
  19. }
  20. tst_run