X-Git-Url: http://sjero.net/git/?p=dccp2tcp;a=blobdiff_plain;f=dccp2tcp.h;h=62b2e998a298c0272e1eadc5962b00a107eb2c97;hp=e737a3fb431c1171b8323ad49bac42c2224bd0d9;hb=a1692221e85ad4ac4499d4be050f50be7b3f3ca4;hpb=788c5be5d56eec083cb1548a3eeabab8cd488619 diff --git a/dccp2tcp.h b/dccp2tcp.h index e737a3f..62b2e99 100644 --- a/dccp2tcp.h +++ b/dccp2tcp.h @@ -88,6 +88,13 @@ enum con_state{ CLOSE, }; +/*Connection Types (i.e. CCID)*/ +enum con_type{ + UNKNOWN, + CCID2, + CCID3, +}; + /*Host---half of a connection*/ struct host{ int id_len; /*Length of ID*/ @@ -97,6 +104,7 @@ struct host{ int size; /*Size of Sequence Number Table*/ int cur; /*Current TCP Sequence Number*/ enum con_state state; /*Connection state*/ + enum con_type type; /*Connection type*/ }; /*Connection structure*/ @@ -122,7 +130,6 @@ extern int sack; /*add TCP SACKS*/ extern struct connection *chead;/*connection list*/ - /*debug printf * Levels: * 0) Always print even if debug isn't specified @@ -142,4 +149,7 @@ struct connection *add_connection(u_char *src_id, u_char* dest_id, int id_len, int update_state(struct host* hst, enum con_state st); void cleanup_connections(); +/*Per-CCID convert functions*/ +int ccid2_convert_packet(struct packet *new, const struct const_packet* old); + #endif