mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Added state dump, fixed numerous RPC related bugs
This commit is contained in:
parent
f6e0bdb2f2
commit
96eb0ce492
10 changed files with 256 additions and 102 deletions
|
@ -107,8 +107,9 @@ private:
|
|||
void handle_bind(PhySocket *sock, void **uptr, struct bind_st *bind_rpc);
|
||||
void handle_listen(PhySocket *sock, void **uptr, struct listen_st *listen_rpc);
|
||||
void handle_map_request(PhySocket *sock, void **uptr, unsigned char* buf);
|
||||
void handle_i_am(PhySocket *sock, void **uptr, unsigned char* buf);
|
||||
void handle_retval(PhySocket *sock, void **uptr, unsigned char* buf);
|
||||
void handle_socket(PhySocket *sock, void **uptr, struct socket_st* socket_rpc);
|
||||
int handle_socket(PhySocket *sock, void **uptr, struct socket_st* socket_rpc);
|
||||
void handle_connect(PhySocket *sock, void **uptr, struct connect_st* connect_rpc);
|
||||
void handle_write(TcpConnection *conn);
|
||||
|
||||
|
@ -141,16 +142,19 @@ private:
|
|||
|
||||
// Client helpers
|
||||
TcpConnection *getConnectionByTheirFD(PhySocket *sock, int fd);
|
||||
TcpConnection *getConnectionByPCB(struct tcp_pcb *pcb);
|
||||
void closeConnection(TcpConnection *conn);
|
||||
void closeAll();
|
||||
void closeClient(PhySocket *sock);
|
||||
void compact_dump();
|
||||
void dump();
|
||||
void die(int exret);
|
||||
|
||||
Phy<NetconEthernetTap *> _phy;
|
||||
PhySocket *_unixListenSocket;
|
||||
|
||||
std::vector<TcpConnection*> tcp_connections;
|
||||
std::vector<PhySocket*> rpc_sockets;
|
||||
std::map<PhySocket*, pid_t> pidmap;
|
||||
|
||||
netif interface;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue