// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// T_VJCOMP_13
// Insufficient free space for prepending TCP/IP header
// tcsim input file to generate test data for VJ compression tests.
//
//
#include "packet.def"
#include "ports.tc"
dev eth0 100 Mbps {
egress {
}
}
// Packet to prime the compressor
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)
0x31
// Largest TCP/IP header
send IP_HDR($ip_proto = IPPROTO_TCP $ip_id=2 $ip_hl=15 $ip_sum=0x5c7b)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
TCP_HDR($tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=1 $tcp_off=15 $tcp_sum=0xc4c1)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0x32
// Another packet to fill another slot
send TCP_PCK($ip_id=3 $ip_sum=0x66ca $tcp_sport = PORT_FTP_DATA $tcp_dport = 9999 $tcp_ACK=1 $tcp_seq=0 $tcp_ack=0 $tcp_sum=0x33ae)
0x41
// Another largest TCP/IP header
send IP_HDR($ip_proto = IPPROTO_TCP $ip_id=4 $ip_hl=15 $ip_sum=0x5c79)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
TCP_HDR($tcp_sport = PORT_FTP_DATA $tcp_dport = 1234 $tcp_ACK=1 $tcp_seq=2 $tcp_off=15 $tcp_sum=0xc3c0)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0x33
end