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 8TST_TESTFUNC=do_test 9TST_SETUP=do_setup 10TST_CLEANUP=tst_ipsec_cleanup 11. ipsec_lib.sh 12 13do_setup() 14{ 15 tst_ipsec_setup 16 PING_MAX="$IPSEC_REQUESTS" 17 tst_res TINFO "Sending ICMP messages" 18} 19 20do_test() 21{ 22 tst_ping $(tst_iface) $(tst_ipaddr rhost) $2 23} 24 25tst_run 26