Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tun: Export setup_tun() functionality
Create three new setup_tun() library functions: openconnect_setup_tun_device - create a tun device openconnect_setup_tun_script - pass traffic through a script openconnect_setup_tun_fd - pass traffic through an existing fd The latter is needed to support Android's VpnService API. If a fd is passed in, the library will not close it. In all cases, the caller no longer needs to directly manipulate vpninfo->vpnc_script or vpninfo->script_tun. The former is treated as a standard caller-allocated, library-freed string. Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
- Loading branch information
Showing
6 changed files
with
89 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters