Pass sockets to bypass to kernel interface, allowing us to register them dynamically
This commit is contained in:
@@ -332,6 +332,15 @@ struct kernel_interface_t {
|
||||
status_t (*del_route) (kernel_interface_t *this, chunk_t dst_net, u_int8_t prefixlen,
|
||||
host_t *gateway, host_t *src_ip, char *if_name);
|
||||
|
||||
/**
|
||||
* Set up a bypass policy for a given socket.
|
||||
*
|
||||
* @param fd socket file descriptor to setup policy for
|
||||
* @param family protocol family of the socket
|
||||
* @return TRUE of policy set up successfully
|
||||
*/
|
||||
bool (*bypass_socket)(kernel_interface_t *this, int fd, int family);
|
||||
|
||||
/**
|
||||
* manager methods
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user