… | |
… | |
54 | tap_device *tap; |
54 | tap_device *tap; |
55 | |
55 | |
56 | typedef vector<connection *> conns_vector; |
56 | typedef vector<connection *> conns_vector; |
57 | conns_vector conns; |
57 | conns_vector conns; |
58 | |
58 | |
59 | connection *find_router (); |
59 | // called when any conenction has been established |
60 | connection *find_forwarder (); |
60 | void connection_established (connection *c); |
|
|
61 | |
|
|
62 | // return true if src can connect directly to dst |
|
|
63 | bool can_direct (conf_node *src, conf_node *dst) const; |
|
|
64 | connection *find_router_for (const connection *dst); |
61 | |
65 | |
62 | void reconnect_all (); |
66 | void reconnect_all (); |
63 | void shutdown_all (); |
67 | void shutdown_all (); |
64 | |
68 | |
65 | void tap_ev (ev::io &w, int revents); ev::io tap_ev_watcher; |
69 | void tap_ev (ev::io &w, int revents); ev::io tap_ev_watcher; |