PERFORCE change 145349 for review

Victor Hugo Bilouro bilouro at FreeBSD.org
Thu Jul 17 02:29:24 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=145349

Change 145349 by bilouro at 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)
         # 


More information about the p4-projects mailing list