worker: notify early main on session info

That allows to pass TLS information early, but more importantly
to pass information on the IP of the client (and our listen IP),
to main, which will be provided in turn to the up and down scripts,
as well as occtl.
This commit is contained in:
Nikos Mavrogiannopoulos
2015-08-22 13:11:02 +02:00
parent 344167fd5c
commit 8ae336f2ba
7 changed files with 58 additions and 13 deletions

View File

@@ -17,6 +17,8 @@
| | |
| -----------------AUTH_REP-----------------> |
| | |
| <------------SESSION_INFO------------------ |
| | |
| | <-- CLI_STATS ------ |
| | (disconnect)
| ---SESSION_CLOSE---> |
@@ -140,6 +142,12 @@ message session_info_msg
required string user_agent = 3;
optional string cstp_compr = 4;
optional string dtls_compr = 5;
/* these two are of type sockaddr_storage,
* and contain the addresses we got from proxy
* protocol (if any).
*/
optional bytes our_addr = 6;
optional bytes remote_addr = 7;
}
/* WORKER_BAN_IP: sent from worker to main */