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