… | |
… | |
77 | tstamp last_activity; // time of last packet received |
77 | tstamp last_activity; // time of last packet received |
78 | |
78 | |
79 | u32 oseqno; |
79 | u32 oseqno; |
80 | sliding_window iseqno; |
80 | sliding_window iseqno; |
81 | |
81 | |
82 | u8 prot_send, prot_recv; |
82 | u8 protocol; |
83 | |
83 | |
84 | pkt_queue queue; |
84 | pkt_queue queue; |
85 | |
85 | |
86 | crypto_ctx *octx, *ictx; |
86 | crypto_ctx *octx, *ictx; |
87 | |
87 | |
… | |
… | |
96 | void rekey_cb (tstamp &ts); time_watcher rekey; // next rekying (actually current reset + reestablishing) |
96 | void rekey_cb (tstamp &ts); time_watcher rekey; // next rekying (actually current reset + reestablishing) |
97 | void keepalive_cb (tstamp &ts); time_watcher keepalive; // next keepalive probe |
97 | void keepalive_cb (tstamp &ts); time_watcher keepalive; // next keepalive probe |
98 | |
98 | |
99 | void send_auth_request (const sockinfo &si, bool initiate); |
99 | void send_auth_request (const sockinfo &si, bool initiate); |
100 | void send_auth_response (const sockinfo &si, const rsaid &id, const rsachallenge &chg); |
100 | void send_auth_response (const sockinfo &si, const rsaid &id, const rsachallenge &chg); |
|
|
101 | void send_connect_info (int rid, const sockinfo &rsi, u8 rprotocols); |
101 | void send_reset (const sockinfo &dsi); |
102 | void send_reset (const sockinfo &dsi); |
102 | void send_ping (const sockinfo &dsi, u8 pong = 0); |
103 | void send_ping (const sockinfo &dsi, u8 pong = 0); |
103 | void send_data_packet (tap_packet *pkt, bool broadcast = false); |
104 | void send_data_packet (tap_packet *pkt, bool broadcast = false); |
104 | void inject_data_packet (tap_packet *pkt, bool broadcast = false); |
105 | void inject_data_packet (tap_packet *pkt, bool broadcast = false); |
105 | void connect_request (int id); |
106 | void connect_request (int id); |