Enable IP_TOS and IPV6_TCLASS on illumos#662
Merged
Merged
Conversation
IP_TOS and IPV6_TCLASS consts are already exposed by libc for Illumos.
Enable the set_tos_v4/tos_v4 and tclass_v6/set_tclass_v6 wrappers for
the illumos platform.
Manual run of tests `tos_v4` and `tclass_v6` succeed on illumos:
```
trey@korgano 08:27:10 PM | ~/git/socket2
‣ cargo nextest run --all-features tclass_v6 tos_v4
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
------------
Nextest run ID 1dcf5449-2180-4dae-a7c8-d7c8d5fae7ea with nextest profile: default
Starting 2 tests across 2 binaries (55 tests skipped)
PASS [ 0.009s] socket2::socket tclass_v6
PASS [ 0.010s] socket2::socket tos_v4
------------
Summary [ 0.012s] 2 tests run: 2 passed, 55 skipped
trey@korgano 08:27:14 PM | ~/git/socket2
‣ uname -a
SunOS korgano 5.11 helios-2.0.23819 i86pc i386 i86pc
```
Signed-off-by: Trey Aspelund <trey@oxidecomputer.com>
Thomasdezeeuw
approved these changes
Jun 30, 2026
Collaborator
|
Thanks @taspelund |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IP_TOS and IPV6_TCLASS consts are already exposed by libc for Illumos. Enable the set_tos_v4/tos_v4 and tclass_v6/set_tclass_v6 wrappers for the illumos platform.
Manual run of tests
tos_v4andtclass_v6succeed on illumos: