--- gvpe/src/connection.h 2004/01/27 05:56:35 1.13 +++ gvpe/src/connection.h 2005/03/02 05:49:31 1.16 @@ -111,6 +111,12 @@ ~pkt_queue (); }; +enum + { + FEATURE_COMPRESSION = 0x01, + FEATURE_ROHC = 0x02, + }; + struct connection { conf_node *conf; @@ -125,11 +131,22 @@ sliding_window iseqno; u8 protocol; + u8 features; pkt_queue data_queue, vpn_queue; crypto_ctx *octx, *ictx; +#if ENABLE_DNS + sockinfo dns_si; + + struct byte_stream *dns_rcvdq; int dns_rcvseq; + struct byte_stream *dns_snddq; int dns_sndseq; + + void dnsv4_cb (time_watcher &w); time_watcher dnsv4_tw; + bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); +#endif + enum conf_node::connectmode connectmode; u8 prot_minor; // minor number of other side @@ -164,7 +181,7 @@ void dump_status (); - connection(struct vpn *vpn_); + connection (struct vpn *vpn, conf_node *conf); ~connection (); };