From owner-p4-projects@FreeBSD.ORG Thu Jul 17 02:29:24 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 58CFC1065673; Thu, 17 Jul 2008 02:29:24 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C92B106564A for ; Thu, 17 Jul 2008 02:29:24 +0000 (UTC) (envelope-from bilouro@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 06E918FC15 for ; Thu, 17 Jul 2008 02:29:24 +0000 (UTC) (envelope-from bilouro@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m6H2TNKH063810 for ; Thu, 17 Jul 2008 02:29:23 GMT (envelope-from bilouro@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6H2TNSh063808 for perforce@freebsd.org; Thu, 17 Jul 2008 02:29:23 GMT (envelope-from bilouro@FreeBSD.org) Date: Thu, 17 Jul 2008 02:29:23 GMT Message-Id: <200807170229.m6H2TNSh063808@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bilouro@FreeBSD.org using -f From: Victor Hugo Bilouro To: Perforce Change Reviews Cc: Subject: PERFORCE change 145349 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2008 02:29:24 -0000 http://perforce.freebsd.org/chv.cgi?CH=145349 Change 145349 by bilouro@bilouro_tcptest on 2008/07/17 02:29:09 Add some text, comments, todo... Affected files ... .. //depot/projects/soc2008/bilouro_tcptest/src/scripts/tests/cresetfromclosedstate.py#2 edit Differences ... ==== //depot/projects/soc2008/bilouro_tcptest/src/scripts/tests/cresetfromclosedstate.py#2 (text+ko) ==== @@ -44,12 +44,23 @@ import pdb import time -class TestResetFromClosedStateWithACK(unittest.TestCase): +class TestResetFromClosedState(unittest.TestCase): """ RFC 793 - Section 3.4 Establishing a Connection - Reset Generation 1) Sends a segment to a closed state with ACK bit set and check if the answer is conformant with protocol specification. + + [PREPARATION] + ==DEVICE UNDER TEST + inetd with descard server running (port 9) + possibility to kill -TERM inet process and /etc/rc.d/inetd stop + + [TESTS] + (a)SYN with and without ACK [80%] + (b)URG with and without ACK [0%] + (c)FIN with and without ACK [0%] + (d)RST with and without ACK [0%] """ def setUp(self): @@ -89,7 +100,7 @@ - def testSendSyn4BroadcastAddress(self): + def testResetFromClosedStateWithACKSYN(self): """ RFC 793 - Section 3.4 Establishing a Connection - Reset Generation @@ -98,6 +109,17 @@ """ tcptest.threewayhandshakenoopt(self, self.tcb, self.thisside, self.thatside) + ################ + # IMPORTANT NOTE + ################ + # + # At this time you shoud (a)kill -TERM the inetd server of the + # connection priviously set and stop inetd superserver at + # Device Under Test(DUT), this will cause: + # --> DUT to start active close + # --> avoid new connection at new socket + # + tcptest.passivecloseconnection(self, self.tcb, self.thisside, self.thatside) time.sleep(60) #2MSL(freebsd7) #