Skip to content

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

Merged
SteveLauC merged 1 commit intonix-rust:masterfrom
devnexen:tcp_function_alias_fbsd
Dec 8, 2024
Merged

sys::socket adding GetOnly TCP_FUNCTION_ALIAS for freebsd.#2558
SteveLauC merged 1 commit intonix-rust:masterfrom
devnexen:tcp_function_alias_fbsd

Conversation

@devnexen
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread test/sys/test_sockopt.rs

// 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
Copy Markdown
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
Copy Markdown
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
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