xref: /aosp_15_r20/external/ltp/testcases/network/stress/icmp/icmp-uni-basic.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2018-2022 Petr Vorel <[email protected]>
4# Copyright (c) 2016 Red Hat Inc.,  All Rights Reserved.
5# Copyright (c) International Business Machines  Corp., 2005
6# Author: Hangbin Liu <[email protected]>
7
8TST_TESTFUNC=do_test
9TST_SETUP=do_setup
10TST_CLEANUP=tst_ipsec_cleanup
11
12do_setup()
13{
14	tst_ipsec_setup
15	PING_MAX="$IPSEC_REQUESTS"
16	tst_res TINFO "Sending ICMP messages"
17}
18
19do_test()
20{
21	tst_ping -s $2
22}
23
24. ipsec_lib.sh
25tst_run
26