1#!/bin/sh 2 3# Copyright (c) 2014 Oracle and/or its affiliates. All Rights Reserved. 4# Copyright (c) International Business Machines Corp., 2006 5# 6# This program is free software; you can redistribute it and/or 7# modify it under the terms of the GNU General Public License as 8# published by the Free Software Foundation; either version 2 of 9# the License, or (at your option) any later version. 10# 11# This program is distributed in the hope that it would be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write the Free Software Foundation, 18# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19# 20# Author: Mitsuru Chinen <mitch@jp.ibm.com> 21 22TCID=broken_ip4-checksum01 23TST_TOTAL=1 24 25. broken_ip4_lib.sh 26 27tst_resm TINFO "Verify that the kernel is not crashed with receiving \ 28a large number of IPv4 packets that have wrong value in the checksum field" 29 30tst_rhost_run -s -c "ns-icmpv4_sender -I $(tst_iface rhost) -S $rhost_addr \ 31 -M $(tst_hwaddr lhost) -D $lhost_addr -s 56 -t $NS_DURATION -c" 32 33tst_resm TPASS "Test is finished successfully." 34 35tst_exit 36