mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
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:
+4
-3
@@ -148,7 +148,8 @@ typedef struct worker_st {
|
||||
unsigned buffer_size;
|
||||
|
||||
/* the following are set only if authentication is complete */
|
||||
char tun_name[IFNAMSIZ];
|
||||
|
||||
|
||||
char username[MAX_USERNAME_SIZE];
|
||||
char hostname[MAX_HOSTNAME_SIZE];
|
||||
uint8_t cookie[COOKIE_SIZE];
|
||||
@@ -194,8 +195,8 @@ void __attribute__ ((format(printf, 3, 4)))
|
||||
# define oclog _oclog
|
||||
#endif
|
||||
|
||||
int get_rt_vpn_info(worker_st * ws,
|
||||
struct vpn_st* vinfo, char* buffer, size_t buffer_size);
|
||||
int complete_vpn_info(worker_st * ws,
|
||||
struct vpn_st* vinfo);
|
||||
|
||||
int send_tun_mtu(worker_st *ws, unsigned int mtu);
|
||||
int handle_worker_commands(struct worker_st *ws);
|
||||
|
||||
Reference in New Issue
Block a user