... | ... |
@@ -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 | 52 |
extern pid_t slow_timer_pid; |
52 | 53 |
#endif |
53 | 54 |
|
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 | 55 |
|
57 | 56 |
|
58 | 57 |
|