#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2018 Petr Vorel <pvorel@suse.cz>
# Copyright (c) 2016 Red Hat Inc., All Rights Reserved.
# Copyright (c) International Business Machines Corp., 2005
# Author: Hangbin Liu <haliu@redhat.com>
TST_TESTFUNC=do_test
TST_SETUP=do_setup
TST_CLEANUP=tst_ipsec_cleanup
. ipsec_lib.sh
do_setup()
{
tst_ipsec_setup
PING_MAX="$IPSEC_REQUESTS"
tst_res TINFO "Sending ICMP messages"
}
do_test()
{
tst_ping $(tst_iface) $(tst_ipaddr rhost) $2
}
tst_run