-
Notifications
You must be signed in to change notification settings - Fork 691
Support for socket options to get/set TOS/TTL info #2203
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
Open
larseggert
wants to merge
38
commits into
nix-rust:master
Choose a base branch
from
larseggert:feat-tos
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
14ccc66
Add support for getting/setting IPv4 type-of-service (TOS) and
larseggert 2f865a5
Linux fixes
larseggert 97dfca8
Linux works
larseggert bb78faa
Add back TTL stuff
larseggert cd032fd
libc has been updated
larseggert b39b444
Rebase
larseggert 0427a4a
Add changelog entry
larseggert f2dd35c
Fix syntax
larseggert 4f93a8e
Add tests
larseggert 101f048
Patch libc again until the release drops
larseggert 743ed07
Undo libc patch
larseggert 7593d31
Fix tests
larseggert b095f33
Fix warnings
larseggert 74dacfb
More fixes
larseggert 5fcea6f
More fixes
larseggert cc012f1
Test fixes
larseggert 6c29437
Fix
larseggert e075a66
TTL not on FreeBSD
larseggert 21d18fb
Not FreeBSD
larseggert 750f729
Don't test on FreeBSD
larseggert 8867665
Address code review comments
larseggert 7e79ab2
Merge branch 'master' into feat-tos
larseggert 0281496
Fix merge
larseggert dac97d3
Fix failures
larseggert f2a3488
Fix nits
larseggert 083cf3a
Fix FreeBSD
larseggert 43104a9
Try and fix MIPS
larseggert 00c42ab
Try and fix MIPS again
larseggert 90e0e0e
Try and debug MIPS failure
larseggert 1d2c708
Temporarily disable IP_TTL to see if that's the issue
larseggert 13d259a
Ignore MIPS failures
larseggert 53494f6
Linux fix
larseggert dd3cdcb
Add changelog for IpDontFrag and Ipv6DontFrag.
larseggert 6dfe0f8
Address code review
larseggert fb85b13
Undo FreeBSD
larseggert 98a03c5
Address review feedback
larseggert 2cecf06
Don't test test_ttl_opts on apple_targets
larseggert 2e22157
Re-enable apple_targets for test_ttl_opts
larseggert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Added support for getting/setting IPv4 type-of-service (TOS) information via | ||
`nix::sys::socket::sockopt::IpRecvTos` and `nix::sys::socket::sockopt::IpTos`. | ||
|
||
Added support for getting/setting IPv6 traffic class information via | ||
`nix::sys::socket::sockopt::Ipv6RecvTClass` and | ||
`nix::sys::socket::sockopt::Ipv6TClass`. | ||
|
||
Added support for getting/setting IPv4 time-to-live (TTL) information via | ||
`nix::sys::socket::sockopt::IpRecvTtl` and `nix::sys::socket::sockopt::IpTtl`. | ||
|
||
Added support for getting/setting IPv6 hop limit information via | ||
`nix::sys::socket::sockopt::Ipv6RecvHopLimit` and | ||
`nix::sys::socket::sockopt::Ipv6HopLimit`. | ||
|
||
Added support for preventing IP fragmentation via | ||
`nix::sys::socket::sockopt::IpDontFrag` for IPv4 on Linux, Android and FreeBSD, and | ||
`nix::sys::socket::sockopt::Ipv6DontFrag` for IPv6 for FreeBSD. |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.