Skip to content
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

transport: Add option to set ECN on the TransportSender socket. #685

Merged
merged 1 commit into from
May 30, 2024

Conversation

hawkinsw
Copy link
Contributor

@hawkinsw hawkinsw commented May 6, 2024

Add support for setting the ECN bits on a TransportSender socket for IPv4 and IPv6.

@hawkinsw
Copy link
Contributor Author

hawkinsw commented May 6, 2024

Hello everyone!

Thank you for such an awesome library! It does exactly what I needed, and then I found that I had one feature I desired, so I added it: the option for setting the ecn bits. I know that my PR does not have tests ... however, if this is a feature you would like to have, I am more than happy to add tests. I just didn't want to spam you with something unless you thought it was useful!

Thank you for your dedication to keeping up this awesome crate.

And, yes, I will fix the CI/CD. Sorry!

Thank you again!

@hawkinsw
Copy link
Contributor Author

hawkinsw commented May 6, 2024

And, yes, I will fix the CI/CD. Sorry!

Thank you again!

I think I fixed as much of the CI/CD as I can without venturing too far afield of what this PR does. Let me know what else I can do!

Thank you!
Will

@Paul-weqe
Copy link
Contributor

Paul-weqe commented May 6, 2024

I like this!!! Congestion Notification. is very important Testing this locally right now.

Most of the fail checks I had before were due to spelling errors and such so shouldn't worry you too much. If this is merged all should be good #676. Testing locally to see if there is anything else that might be amiss.

@hawkinsw
Copy link
Contributor Author

hawkinsw commented May 6, 2024

I like this!!! Congestion Notification. is very important Testing this locally right now.

I sincerely, sincerely appreciate your enthusiasm. As I said, this crate is amazing. If there is anything else I can do to help, please just let me know!
Will

Most of the fail checks I had before were due to spelling errors and such so shouldn't worry you too much. If this is merged all should be good #676. Testing locally to see if there is anything else that might be amiss.

@hawkinsw
Copy link
Contributor Author

Just dropping in to add a little feature that I found that I needed -- implementing the From trait for Ecn struct. Please let me know if there is anything I can do to get this PR into shape. I really appreciate the library and hope that this is at least slightly helpful!

Add support for setting the ECN bits on a TransportSender socket for
IPv4 and IPv6.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
@hawkinsw
Copy link
Contributor Author

In earlier versions of the PR, I had improperly labeled the constants associated with the ECT values. In the most recently update to the PR, that is now fixed! Sorry!

Thanks again for all that you do!

@mrmonday mrmonday merged commit 04a0724 into libpnet:main May 30, 2024
0 of 4 checks passed
@mrmonday
Copy link
Contributor

I'd have liked some documentation to go with this, but I'll not hold up merging it since you've been waiting long enough :)

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants