%description:
Test connection setup: A performs active open and A's ACK of SYN gets lost.

%inifile: omnetpp.ini
[General]
ned-path = .;../../../../src;../../lib

#cmdenv-event-banners=false
cmdenv-express-mode=false

*.testing=true
cmdenv-log-prefix="[%c]: "

*.cli_app.tOpen=0s
*.srv_app.tOpen=0s

*.tcptester.script="a2 delete"

include ../../lib/defaults.ini

%#--------------------------------------------------------------------------------------------------------------
%file: postrun.pl
open FILE, '<test.out';
while($sor = <FILE>)
{
    if ($sor =~ /^\[testing\]: (.*)$/)
    {
        print "$1\n";
    }
}
%#--------------------------------------------------------------------------------------------------------------
%postrun-command:  perl ./postrun.pl
%#--------------------------------------------------------------------------------------------------------------
%contains: postrun-command(1).out
cli_tcp: INIT --> SYN_SENT  (on OPEN_ACTIVE)
srv_tcp: INIT --> LISTEN  (on OPEN_PASSIVE)
[0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384   Option(s): MaxSegSize
srv_tcp: LISTEN --> SYN_RCVD  (on RCV_SYN)
[0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384   Option(s): MaxSegSize
cli_tcp: SYN_SENT --> ESTABLISHED  (on RCV_SYN_ACK)
[0.005 A002] A.1000 > B.2000: A ack 501 win 16384 # deleting
[3.003 B002] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384   Option(s): MaxSegSize
[3.005 A003] A.1000 > B.2000: A ack 501 win 16384
srv_tcp: SYN_RCVD --> ESTABLISHED  (on RCV_ACK)
%#--------------------------------------------------------------------------------------------------------------
%contains: stdout
[3.006] tcpdump finished, A:3 B:2 segments
%#--------------------------------------------------------------------------------------------------------------
%not-contains: stdout
undisposed object:
%#--------------------------------------------------------------------------------------------------------------
%not-contains: stdout
-- check module destructor
%#--------------------------------------------------------------------------------------------------------------
