Xenomai  3.0.5
tcp.h
1 /***
2  *
3  * include/ipv4/tcp.h
4  *
5  * Copyright (C) 2009 Vladimir Zapolskiy <vladimir.zapolskiy@siemens.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License, version 2, as
9  * published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19  *
20  */
21 
22 #ifndef __RTNET_TCP_H_
23 #define __RTNET_TCP_H_
24 
25 #include <rtskb.h>
26 #include <ipv4/protocol.h>
27 
28 /* Maximum number of active tcp sockets, must be power of 2 */
29 #define RT_TCP_SOCKETS 32
30 
31 /*Maximum number of active tcp connections, must be power of 2 */
32 #define RT_TCP_CONNECTIONS 64
33 
34 /* Maximum size of TCP input window */
35 #define RT_TCP_WINDOW 4096
36 
37 /* Maximum number of retransmissions of invalid segments */
38 #define RT_TCP_RETRANSMIT 3
39 
40 /* Number of milliseconds to wait for ACK */
41 #define RT_TCP_WAIT_TIME 10
42 
43 /* Priority of RST|ACK replies (error condition => non-RT prio) */
44 #define RT_TCP_RST_PRIO RTSKB_PRIO_VALUE(QUEUE_MIN_PRIO-1, \
45  RTSKB_DEF_NRT_CHANNEL)
46 
47 /* rtskb pool for sending socket-less RST|ACK */
48 #define RT_TCP_RST_POOL_SIZE 8
49 
50 #endif /* __RTNET_TCP_H_ */