]> sjero.net Git - dccp2tcp/blobdiff - dccp2tcp.h
Connection closing improvements and explicit cleanup code
[dccp2tcp] / dccp2tcp.h
index 4b556cfcc979eb9ca39dff29b42cc71f803094e6..64c8dd29ba09067c5105c54cd0da75c9d9d2b3fc 100644 (file)
@@ -119,8 +119,9 @@ void dbgprintf(int level, const char *fmt, ...);
 int do_encap(int link, struct packet *new, const struct const_packet *old);
 
 /*Connection functions*/
-int get_host(uint32_t src_id, uint32_t dest_id, int src_port, int dest_port, struct host *fwd, struct host *rev);
+int get_host(uint32_t src_id, uint32_t dest_id, int src_port, int dest_port, struct host **fwd, struct host **rev);
 struct connection *add_connection(uint32_t src_id, uint32_t dest_id, int src_port, int dest_port);
 int update_state(struct host* hst, enum con_state st);
+void cleanup_connections();
 
 #endif