3 * Politecnico di Torino. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and
9 * this paragraph in its entirety in the documentation or other materials
10 * provided with the distribution, and (3) all advertising materials mentioning
11 * features or use of this software display the following acknowledgement:
12 * ``This product includes software developed by the Politecnico
13 * di Torino, and its contributors.'' Neither the name of
14 * the University nor the names of its contributors may be used to endorse
15 * or promote products derived from this software without specific prior
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32 #include <net/tme/tme.h>
48 #define FIRST_IS_CLN 0
49 #define FIRST_IS_SRV 0xffffffff
53 #define MAX_WINDOW 65536
55 typedef struct __tcp_data
57 struct timeval timestamp_block
; /*DO NOT MOVE THIS VALUE*/
58 struct timeval syn_timestamp
;
59 struct timeval last_timestamp
;
60 struct timeval syn_ack_timestamp
;
64 uint32 ack_srv
; /* acknowledge of (data sent by server) */
65 uint32 ack_cln
; /* acknowledge of (data sent by client) */
67 uint32 pkts_cln_to_srv
;
68 uint32 pkts_srv_to_cln
;
69 uint32 bytes_srv_to_cln
;
70 uint32 bytes_cln_to_srv
;
82 #define TCP_SESSION 0x00000800
83 uint32
tcp_session(uint8
*block
, uint32 pkt_size
, TME_DATA
*data
, MEM_TYPE
*mem_ex
, uint8
*mem_data
);