Browse code

- ticks_t move in timer_ticks.h - tcpconn_get() exported (tls needs it)

Andrei Pelinescu-Onciul authored on 01/02/2007 04:34:32
Showing 3 changed files
... ...
@@ -41,7 +41,7 @@
41 41
 #include "ip_addr.h"
42 42
 #include "locking.h"
43 43
 #include "atomic_ops.h"
44
-
44
+#include "timer_ticks.h"
45 45
 
46 46
 #define TCP_CON_MAX_ALIASES 4 /* maximum number of port aliases */
47 47
 
... ...
@@ -198,6 +198,8 @@ static inline unsigned tcp_addr_hash(struct ip_addr* ip, unsigned short port)
198 198
 
199 199
 #define tcp_id_hash(id) (id&(TCP_ID_HASH_SIZE-1))
200 200
 
201
+struct tcp_connection* tcpconn_get(int id, struct ip_addr* ip, int port,
202
+									ticks_t timeout);
201 203
 
202 204
 #endif
203 205
 
... ...
@@ -43,6 +43,7 @@
43 43
 
44 44
 #include "clist.h"
45 45
 #include "dprint.h"
46
+#include "timer_ticks.h"
46 47
 
47 48
 #ifdef USE_SLOW_TIMER
48 49
 #include <sys/types.h>
... ...
@@ -51,8 +52,6 @@ typedef unsigned short slow_idx_t; /* type fot the slow index */
51 51
 extern pid_t slow_timer_pid;
52 52
 #endif
53 53
 
54
-typedef unsigned int ticks_t;/* type used to keep the ticks (must be 32 bits)*/
55
-typedef signed   int s_ticks_t; /* signed ticks type */
56 54
 
57 55
 
58 56
 
... ...
@@ -54,5 +54,7 @@
54 54
 #define TICKS_TO_MS(t) (((t)*1000U)/TIMER_TICKS_HZ)
55 55
 
56 56
 
57
+typedef unsigned int ticks_t;/* type used to keep the ticks (must be 32 bits)*/
58
+typedef signed   int s_ticks_t; /* signed ticks type */
57 59
 
58 60
 #endif