]> sjero.net Git - dccp2tcp/blobdiff - dccp2tcp.h
Improve connection support by adding DEAD and IGNORE states
[dccp2tcp] / dccp2tcp.h
index dafaeac8158b442a0179ad5f69f7d4b8de455988..3a071a6c8446ca5061b829844f38e810bd061673 100644 (file)
@@ -84,6 +84,8 @@ enum con_state{
        INIT,
        OPEN,
        CLOSE,
+       DEAD,
+       IGNORE,
 };
 
 /*Connection Types (i.e. CCID)*/
@@ -142,7 +144,7 @@ int do_encap(int link, struct packet *new, const struct const_packet *old);
 
 /*Connection functions*/
 int get_host(u_char *src_id, u_char* dest_id, int id_len, int src_port, int dest_port,
-               struct hcon **fwd, struct hcon **rev);
+               int pkt_type, struct hcon **fwd, struct hcon **rev);
 struct connection *add_connection(u_char *src_id, u_char* dest_id, int id_len,
                int src_port, int dest_port);
 int update_state(struct hcon* hst, enum con_state st);