-
Notifications
You must be signed in to change notification settings - Fork 2
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
IOS-742 implement wgOpenInTunnelICMP #11
base: mullvad-master
Are you sure you want to change the base?
Conversation
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.
I think we might have to do all the parsing of ICMP packets in the go side and use single byte writes to issue ICMP request packets, for fear of non-atomic writes over the pipe. However, if we can make do without that, that'd be ideal. So far, this looks good, and I'm anxiously waiting on the unit tests.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @acb-mv)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @acb-mv)
Sources/WireGuardKitGo/api-apple.go
line 299 at r1 (raw file):
rxShutdown := make(chan struct{}) go func() { // the sender select {
This function would benefit from a
defer send_r.Close()
Same for the other go routine.
Hello @pinkisemils, Apologies, the issue section is not open, so I had no choice but to address this here. The commit cdd6038 breaks the connection handshake, and I can no longer connect to the Wireguard servers. However, when I revert to the previous commit, 15242e1, everything works again. Has the former commit been tested, or is it still experimental? Many thanks. |
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.
Hiya @houmie, are you using our repo to build the vanilla WireGuard app? If so, I'd suggest you do not - the changes we make in this repository are there to only serve Mullvad's iOS app and we're only looking to make changes to WireGuardKit. We don't intend to have this repo work for any other usecase. In any case, this PR is not the best place to ask for support either.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @acb-mv)
… entire device encapsulating it
…stingTunnel for testing
Add test of ICMP Ping directly over Wireguard devices (it also hangs)
3a659ea
to
95ee998
Compare
c6d191d
to
9d71a84
Compare
An implementation of wgOpenInTunnelICMP, which returns a pair of file descriptors for an ICMP connection
This change is