-
Notifications
You must be signed in to change notification settings - Fork 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
Add some TCP constants #1151
Add some TCP constants #1151
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
5a418db
to
f597216
Compare
Did you check the DragonflyBSD sources? I bet that many of these symbols are defined identically there. If so, they belong in |
I tried to put it in |
That's the wrong file. You want tcp.h, not tcp_var.h. Dragonfly does define some of the same constants. |
Done, I tried to add TCP_CA_NAME_MAX but it's not available in userspace so I removed it. |
Could you rebase ? |
6292051
to
32a7d17
Compare
Done, I squashed the commits |
@bors: r+ |
📌 Commit 32a7d17 has been approved by |
Add some TCP constants Add some TCP constants according to the sources : https://github.com/freebsd/freebsd/blob/master/sys/netinet/tcp.h#L164
☀️ Test successful - status-appveyor, status-travis |
FYI, it broke the build on OpenBSD (there is no CI). I am working on unbreak it |
Damn. Would it be possible to contribute an OpenBSD build bot to CI similar to how the FreeBSD build bot works ? |
@gnzlbg Are you thinking of Nix's buildbot? libc doesn't use buildbot, only Travis. libc's FreeBSD builder runs in QEMU on Travis. AFAIK the same technique should be possible for OpenBSD. |
for FreeBSD, the CI does a crosscompilation from linux to freebsd, and run the executable via qemu. Last time I tried to do crosscompilation from linux to openbsd it was really difficult. Maybe it could be tested again as now we recently switched to clang + ld.lld. |
Add some TCP constants according to the sources : https://github.com/freebsd/freebsd/blob/master/sys/netinet/tcp.h#L164