-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/sys/unix: missing socket constants #53557
Comments
From https://pkg.go.dev/golang.org/x/sys/unix the only ones I see missing are "SOL_MCTCP" and "SOL_SMC", but I also don't see "SOL_MCTCP" mentioned anywhere on the internet at all? |
You are right, it seems that the |
I assume you meant All but
It seems we generate these constants from glibc's sys/socket.h, and glibc 2.35 which we currently use to generate the constants doesn't seem to have |
Change https://go.dev/cl/417994 mentions this issue: |
Do the following source code pages support the missing
|
the
glibc 2.35 not contain these commit. So glibc 2.35 which we currently use to generate the constants doesn't have Do we need to wait for glibc to release? |
We don't have to wait for glibc. But we do need to ensure that anything we do is correct for all supported operating systems. I'm frankly pretty skeptical about the |
Note that |
Argh, I totally missed that. Thanks. This approach seems fine. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am using the x/sys/unix pacakge.
I want to support all possible socket
level
andoptname
values for thesetsocketopt
syscall, but some of the values have no constants (because they are from newer kernel versions).The following values are missing:
level
:optname
:What did you expect to see?
I want to use the values like the following -
unix.SOL_MCTCP
.The text was updated successfully, but these errors were encountered: