-
Notifications
You must be signed in to change notification settings - Fork 17
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
Set/get broadcast address in TunInterface #138
Conversation
2ff39d6
to
a81a903
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wonderful!
@sampoder the tests are failing |
perhaps the interface needs to be brought up in the test after setting |
Sorry about not checking up those tests, checking now! For MacOS & Windows, they're failing because this is currently only implemented on Linux. For Linux, well that's a whole separate question... |
Fixed that error, but we've got a new one now:
@conradev any idea what addresses are available for broadcast addresses? I was under the impression it worked the same as IPV4. |
Modelled after TunInterface's IPV4 logic. Uses SIOCGIFBRDADDR & SIOCSIFBRDADDR. View https://man7.org/linux/man-pages/man7/netdevice.7.html.
8f474bb
to
43782cc
Compare
Modelled after TunInterface's IPV4 logic; uses SIOCGIFBRDADDR & SIOCSIFBRDADDR. View https://man7.org/linux/man-pages/man7/netdevice.7.html.