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

sys::socket adding GetOnly TCP_FUNCTION_ALIAS for freebsd. #2558

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented Dec 7, 2024

to complete TCP_FUNCTION_BLK as to get the alias name, if existent, of the TCP stack.

@devnexen devnexen force-pushed the tcp_function_alias_fbsd branch 2 times, most recently from 5c13587 to de8d410 Compare December 7, 2024 20:47
Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test for this socket option?

@devnexen
Copy link
Contributor Author

devnexen commented Dec 8, 2024

sure but then that would be for TCP_FUNCTION_BLK too as there is none for it. Was wrong there is one I will just update it.

to complete `TCP_FUNCTION_BLK` as to get the alias name, if existent,
of the TCP stack.
@devnexen devnexen force-pushed the tcp_function_alias_fbsd branch from 3a4bde8 to 5084339 Compare December 8, 2024 08:50
Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

// We can't know at compile time what options are available. So just test the setter by a
// no-op set.
// TODO: test if we can load for example BBR tcp stack kernel module.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just need to ensure the wrapper works, so it is not necessary to do further tests, but having them harms nothing:)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is more in case future related flag additions, some of which need this alternative stack to work.

@SteveLauC SteveLauC added this pull request to the merge queue Dec 8, 2024
Merged via the queue into nix-rust:master with commit 5c80884 Dec 8, 2024
40 checks passed
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.

2 participants