• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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@jp.ibm.com>
20
21TCID=broken_ip4-checksum01
22TST_TOTAL=1
23
24. test_net.sh
25
26tst_resm TINFO "Sending ICMPv4 with wrong chksum field for $NS_DURATION sec"
27
28tst_icmp -t $NS_DURATION -s "0 100 500 1000 1472" -c
29
30EXPECT_PASS tst_ping
31
32tst_exit
33