The worker process receives the client's IPs from the main process.

That eliminates the need to read the IP address from the tun device
(which can be quite tricky to implement in a clean portable way).
This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-31 20:53:45 +01:00
parent f715cf08f0
commit 28e5d62f3f
12 changed files with 172 additions and 275 deletions
+16 -10
View File
@@ -82,17 +82,23 @@ message auth_reply_msg
optional string user_name = 5;
optional string msg = 6;
/* the ips of the tun device */
optional string ipv4 = 7;
optional string ipv6 = 8;
optional string ipv4_local = 9;
optional string ipv6_local = 10;
/* additional config */
optional string ipv4_dns = 7;
optional string ipv6_dns = 8;
optional string ipv4_nbns = 9;
optional string ipv6_nbns = 10;
optional string ipv4_netmask = 11;
optional string ipv6_netmask = 12;
optional uint32 rx_per_sec = 13;
optional uint32 tx_per_sec = 14;
optional uint32 net_priority = 15;
repeated string routes = 16;
optional string ipv4_dns = 11;
optional string ipv6_dns = 12;
optional string ipv4_nbns = 13;
optional string ipv6_nbns = 14;
optional string ipv4_netmask = 15;
optional string ipv6_netmask = 16;
optional uint32 rx_per_sec = 17;
optional uint32 tx_per_sec = 18;
optional uint32 net_priority = 19;
repeated string routes = 20;
}
/* RESUME_FETCH_REQ + RESUME_DELETE_REQ */