-
Notifications
You must be signed in to change notification settings - Fork 196
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
Fix crash when enabling napt #545
base: master
Are you sure you want to change the base?
Conversation
Can you paste a link to the documentation where you have found that this is the correct workaround? |
I can't find anything on the doc except this, but it doesn't speak about deprecation for this function at all. I could replicate the crash if you want the logs, it fails an assert with "function must be executed inside a tcpip context". |
Which is mega weird now that I think about it because i'm looking at the code and i can't find this assert. |
... and you pasted a link to another function? |
I know, it's the documentation of that function i'm reading,
It specifically says to use the tcpip exec function, so I don't think that function is deprecated, but that's the only piece of documentation I could find on that function, the tcpip_exec function itself is not marked as deprecated. |
The crash I had was something like this:
|
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo fmt
command to ensure that all changed code is formatted correctly.cargo clippy
command to ensure that all changed code passes latest Clippy nightly lints.CHANGELOG.md
in the proper section.Pull Request Details 📖
Description
something something tcpip context else i crash.
I added some documentation as well. Really a paste from the wiki. There might be a way to do this cleaner but I could not for the life of me figure it out. The enable function takes two arguments so I can't really pass them directly I have to do this whole spaghetti thing. Let me know if you find an easier way i'll modify it.
Testing
It's not crashing.