-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4 bytes header on macos #19
Comments
If that's how it works, yes, I do not have any macOS systems so cannot develop it myself. |
@ihciah I have the same problem on macos, I have been using a Golang implementation without this problem: https://github.com/songgao/water |
I just figured it out, the bytes are [0, 0, 0, 2], 2 stands for AF_INET/ AF_INET6. I checked out broingtun: https://github.com/cloudflare/boringtun, it use sengmsg with vectors so that it will reduce data copy. |
On linux,
packet_information
default value is false, which means IFF_NO_PI will be used. But on macos, the 4-byte ethernet family header will be passed when read.I think the behavior should be consistent on different platforms. Should the behavior on macos changed? Maybe
packet_information
can be applied for macos too to control whether remove the header?The text was updated successfully, but these errors were encountered: