xref: /aosp_15_r20/external/ltp/testcases/network/stress/broken_ip/broken_ip-nexthdr.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2019-2021 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 ICMPv6 with wrong next header for $NS_DURATION sec"
13	tst_icmp -t $NS_DURATION -s "0 100 500 1000 $NS_ICMPV6_SENDER_DATA_MAXSIZE" -n
14	tst_ping
15}
16
17. tst_net.sh
18# not supported on IPv4
19TST_IPV6=6
20TST_IPVER=6
21
22tst_run
23