nu wel werkende code nadat het kapot was gemaakt
authormart <mart@lubbe.rs>
Fri, 13 Nov 2015 19:09:17 +0000 (20:09 +0100)
committermart <mart@lubbe.rs>
Fri, 13 Nov 2015 19:09:17 +0000 (20:09 +0100)
a2/code/client/gen.py

index 4dc28d1..1e3bc20 100755 (executable)
@@ -48,6 +48,7 @@ def test(corruptDestinationPort, corruptSourcePort, numpackets, payloadsize, out
             else:
                 sender.senderPort = oldSourcePort
             sender.sendInput("A", seq, sender.lastSeqReceived + 1, None) # send some data
+            sender.sendInput("PA", seq, sender.lastSeqReceived + 1, m) # send some data
 
         print 'response: ', sender.sendInput("FA", ownSeqnr, sender.lastSeqReceived + 1) # close connection (the echo also closes)
         print 'response: ', sender.sendInput("RP", ownSeqnr+1, 0) # reset connection