linklayerprotocols/pppnif/te_ppp/te_vjcomp/config/TCSIM/t_vjcomp_8.tcsim
changeset 0 af10295192d8
child 1 a579325b79dd
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // T_VJCOMP_8
       
    15 // Changes in sequence number and ack fields. They are changed by the same
       
    16 // amount but that amount is not the amount of user data in the last packet.
       
    17 // tcsim input file to generate test data for VJ compression tests.
       
    18 // 
       
    19 //
       
    20 
       
    21 #include "packet.def"
       
    22 #include "ports.tc"
       
    23 
       
    24 dev eth0 100 Mbps {
       
    25     egress {
       
    26     }
       
    27 }
       
    28 
       
    29 // Packet to prime the compressor
       
    30 send TCP_PCK($ip_id=1 $ip_sum=0x66cc $tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=0 $tcp_ack=0 $tcp_sum=0x65eb)
       
    31      0x31
       
    32 
       
    33 // Increase seq,ack by 2
       
    34 send TCP_PCK($ip_id=2 $ip_sum=0x66cc $tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=2 $tcp_ack=2 $tcp_sum=0x96e8)
       
    35 
       
    36 // Increase seq,ack by 0xffff
       
    37 send TCP_PCK($ip_id=3 $ip_sum=0x66cb $tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=0x10001 $tcp_ack=0x10001 $tcp_sum=0x96e8)
       
    38 
       
    39 // Set seq,ack just before wraparound
       
    40 send TCP_PCK($ip_id=4 $ip_sum=0x66ca $tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=0xffff1000 $tcp_ack=0xffff1000 $tcp_sum=0x76ec)
       
    41 
       
    42 // Increase seq,ack by 0xf001
       
    43 send TCP_PCK($ip_id=5 $ip_sum=0x66c9 $tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=1 $tcp_ack=1 $tcp_sum=0x96ea)
       
    44 
       
    45 end