• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3################################################################################
4##                                                                            ##
5## Copyright (c) International Business Machines  Corp., 2005                 ##
6##                                                                            ##
7## This program is free software;  you can redistribute it and#or modify      ##
8## it under the terms of the GNU General Public License as published by       ##
9## the Free Software Foundation; either version 2 of the License, or          ##
10## (at your option) any later version.                                        ##
11##                                                                            ##
12## This program is distributed in the hope that it will be useful, but        ##
13## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
14## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
15## for more details.                                                          ##
16##                                                                            ##
17## You should have received a copy of the GNU General Public License          ##
18## along with this program;  if not, write to the Free Software               ##
19## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA    ##
20##                                                                            ##
21##                                                                            ##
22################################################################################
23#
24# File:
25#   tcp4-uni-dsackoff01
26#
27# Description:
28#   Verify that the kernel is not crashed with a TCP connection on an
29#   unreliable to with the following condition:
30#     - The version of IP is IPv4
31#     - Network is not delayed
32#     - IPsec is not used
33#     - Disable window scaling
34#     - Enable Nagle algorithm
35#     - Disable TCP Duplicate SACK support
36#     - Enable SACK Support
37#     - Some packets are lost
38#     - Disable TSO if it is avalable
39#
40#   *) This script may be read by the other test case
41#
42# Setup:
43#   See testcases/network/stress/README
44#
45# Author:
46#   Mitsuru Chinen <mitch@jp.ibm.com>
47#
48# History:
49#	Oct 19 2005 - Created (Mitsuru Chinen)
50#
51#-----------------------------------------------------------------------
52# Uncomment line below for debug output.
53#trace_logic=${trace_logic:-"set -x"}
54$trace_logic
55
56# The test case ID, the test case count and the total number of test case
57TCID=${TCID:-tcp4-uni-dsackoff01}
58TST_TOTAL=1
59TST_COUNT=1
60export TCID
61export TST_COUNT
62export TST_TOTAL
63
64# Test description
65tst_resm TINFO "Verify that the kernel, when the Duplicate SACK support is off, is not crashed by a TCP connection on an unreliable network(Namely, some of the packet is lost, some of them is duplicated)."
66
67# Disable DSACK support
68DO_DSACK=false
69
70# Make some packets are lost
71DO_PACKET_LOSS=true
72
73# Make some packets are duplicated
74DO_PACKET_DUP=true
75
76# Load tcp4-uni-basic01
77NON_BASIC=true
78
79. tcp4-uni-basic01
80
81exit 0
82