-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
freebsd adding further TCP stack related constants. #4196
base: main
Are you sure you want to change the base?
Conversation
d99d599
to
4877da1
Compare
pub const TCP_BBR_USE_RACK_RR: c_int = 1104; | ||
pub const TCP_BBR_USE_RACK_CHEAT: c_int = TCP_BBR_USE_RACK_RR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably only need one of these. It looks like TCP_BBR_USE_RACK_RR
was added more recently freebsd/freebsd-src@e570d23#diff-c354fa9fe15a3e5c90079f38792a8e5458d76677437a53ee7537a62fbc72e100R255.
Looks like this is the wrong link, these aren't mentioned there. https://github.com/freebsd/freebsd-src/blob/main/sys/netinet/tcp.h is the header file. One nit but the rest looks fine to me. @asomers could you double check this? |
4877da1
to
fdc60fc
Compare
The definitions look correct to me, but they're awfully obscure. These constants are so obscure that there's a risk of them being deemed unstable private APIs. That's why I generally don't like to add such things to libc unless there's a real need. For example, constants added in 9ab890d later had to be deprecated in ab57796 . Do you have an actual need for these constants, or are you just adding them for completeness's sake? |
I m mostly interested by BBR constants even tough not all values have necessarily an immediate usefulness and a little bit of completeness yes. |
ref: freebsd/freebsd-src@e570d23#diff-c354fa9fe15a3e5c90079f38792a8e5458d76677437a53ee7537a62fbc72e100R255