1 #!/bin/sh 2 # Copyright (c) 2014-2017 Oracle and/or its affiliates. All Rights Reserved. 3 # Copyright (c) International Business Machines Corp., 2006 4 # 5 # This program is free software; you can redistribute it and/or 6 # modify it under the terms of the GNU General Public License as 7 # published by the Free Software Foundation; either version 2 of 8 # the License, or (at your option) any later version. 9 # 10 # This program is distributed in the hope that it would be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with this program; if not, write the Free Software Foundation, 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 # 19 # Author: Mitsuru Chinen <mitch (at] jp.ibm.com> 20 21 TCID=broken_ip4-totlen01 22 TST_TOTAL=1 23 24 TST_USE_LEGACY_API=1 25 . tst_net.sh 26 27 tst_resm TINFO "Sending ICMPv4 with wrong total len field for $NS_DURATION sec" 28 29 tst_icmp -t $NS_DURATION -s "0 100 500 1000 1472" -L 30 31 tst_ping 32 33 tst_exit 34