Support Darwin's native utun device#2
Open
linusyang wants to merge 1 commit intoUCIS:masterfrom
linusyang:darwin-utun
Open
Support Darwin's native utun device#2linusyang wants to merge 1 commit intoUCIS:masterfrom linusyang:darwin-utun
linusyang wants to merge 1 commit intoUCIS:masterfrom
linusyang:darwin-utun
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apple's XNU kernel supports native TUN interface called
utunfrom iOS 4.1 and OS X 10.7 Lion. It is a bit different from the standard TUN interface, which is similar with the OpenBSD one.This patch adds necessary code to build up the utun interface and set
session->use_pi = 2for manipulating TUN devices just like OpenBSD. It is tested to work on OS X 10.9 Mavericks.References:
OpenVPN
utunpatch: http://thread.gmane.org/gmane.network.openvpn.devel/7464/focus=7739Mac OS X and iOS Internals: http://newosxbook.com/src.jl?tree=listings&file=17-15-utun.c