xref: /aosp_15_r20/external/ltp/testcases/network/stress/broken_ip/broken_ip-plen.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2019 Petr Vorel <[email protected]>
4# Copyright (c) 2014-2017 Oracle and/or its affiliates. All Rights Reserved.
5# Copyright (c) International Business Machines  Corp., 2006
6# Author: Mitsuru Chinen <[email protected]>
7
8TST_TESTFUNC="do_test"
9
10do_test()
11{
12	tst_res TINFO "Sending ICMPv$TST_IPVER with wrong payload len for $NS_DURATION sec"
13	tst_icmp -t $NS_DURATION -s "0 100 500 1000 $NS_ICMP_SENDER_DATA_MAXSIZE" -L
14	tst_ping
15}
16
17. tst_net.sh
18tst_run
19