/*
* Copyright (c) 2001
- * Politecnico di Torino. All rights reserved.
+ * Politecnico di Torino. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
#endif
-#define UNKNOWN 0
-#define SYN_RCV 1
-#define SYN_ACK_RCV 2
-#define ESTABLISHED 3
-#define CLOSED_RST 4
-#define FIN_CLN_RCV 5
-#define FIN_SRV_RCV 6
-#define CLOSED_FIN 7
-#define ERROR_TCP 8
-#define FIRST_IS_CLN 0
-#define FIRST_IS_SRV 0xffffffff
-#define FIN_CLN 1
-#define FIN_SRV 2
+#define UNKNOWN 0
+#define SYN_RCV 1
+#define SYN_ACK_RCV 2
+#define ESTABLISHED 3
+#define CLOSED_RST 4
+#define FIN_CLN_RCV 5
+#define FIN_SRV_RCV 6
+#define CLOSED_FIN 7
+#define ERROR_TCP 8
+#define FIRST_IS_CLN 0
+#define FIRST_IS_SRV 0xffffffff
+#define FIN_CLN 1
+#define FIN_SRV 2
#define MAX_WINDOW 65536
typedef struct __tcp_data
{
- struct timeval timestamp_block; /*DO NOT MOVE THIS VALUE*/
- struct timeval syn_timestamp;
- struct timeval last_timestamp;
- struct timeval syn_ack_timestamp;
- uint32 direction;
- uint32 seq_n_0_srv;
- uint32 seq_n_0_cln;
- uint32 ack_srv; /* acknowledge of (data sent by server) */
- uint32 ack_cln; /* acknowledge of (data sent by client) */
- uint32 status;
- uint32 pkts_cln_to_srv;
- uint32 pkts_srv_to_cln;
- uint32 bytes_srv_to_cln;
- uint32 bytes_cln_to_srv;
- uint32 close_state;
+ struct timeval timestamp_block; /*DO NOT MOVE THIS VALUE*/
+ struct timeval syn_timestamp;
+ struct timeval last_timestamp;
+ struct timeval syn_ack_timestamp;
+ uint32 direction;
+ uint32 seq_n_0_srv;
+ uint32 seq_n_0_cln;
+ uint32 ack_srv; /* acknowledge of (data sent by server) */
+ uint32 ack_cln; /* acknowledge of (data sent by client) */
+ uint32 status;
+ uint32 pkts_cln_to_srv;
+ uint32 pkts_srv_to_cln;
+ uint32 bytes_srv_to_cln;
+ uint32 bytes_cln_to_srv;
+ uint32 close_state;
}
- tcp_data;
+ tcp_data;
-#define FIN 1
-#define SYN 2
-#define RST 4
-#define PSH 8
-#define ACK 16
-#define URG 32
+#define FIN 1
+#define SYN 2
+#define RST 4
+#define PSH 8
+#define ACK 16
+#define URG 32
-#define TCP_SESSION 0x00000800
+#define TCP_SESSION 0x00000800
uint32 tcp_session(uint8 *block, uint32 pkt_size, TME_DATA *data, MEM_TYPE *mem_ex, uint8 *mem_data);
#endif
\ No newline at end of file