-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fixes and refactor #37
Conversation
There are some minor comments that I left; the rest looks good to me. Thanks. |
@SajjadPourali somehow I don't see your comments. A feature is not very friendly with understanding the code. Also once enabled, it stays enabled for all of the crates in the project. |
Perhaps it would be better to use a configuration setting because the feature flag is compile time and anyone wanting to create a tun device with or without |
I agree; however, personally, I have never seen any examples where different values are passed at runtime. |
@RoDmitry: Thanks, there were some minor code refactor comments that I addressed, one of them. |
Returning |
@RoDmitry I couldn't find the place where it logs duplicates. Could you please elaborate on that? I see, my bad. Let me check it one more time. |
@RoDmitry I just made a PR to fix the issue, could you please review it? |
Yep. It's unlikely and probably impractical, although technically possible to have two tun devices, one configured with packet information, the other without. |
u16::MAX + 4
)IpStackStream
if channel was closed (previously it was a trace:Send packet error: "channel closed"
, now it saysNew stream because: "channel closed"
)