Skip to content
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

SocketOption level #130

Merged
merged 1 commit into from
Nov 21, 2024
Merged

SocketOption level #130

merged 1 commit into from
Nov 21, 2024

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Nov 21, 2024

Currently protocol SocketOption and socket.setValue / socket.getValue all assume the hardcoded level SOL_SOCKET.

This PR allows each option to provide its own level, while defaulting to SOL_SOCKET if not supplied by clients.

This enables protocol SocketOption and related API to be used for setting ip_pktinfo/ipv6_pktinfo

@swhitty swhitty merged commit 5a20fdc into main Nov 21, 2024
15 of 16 checks passed
@swhitty swhitty deleted the socketoption-level branch November 21, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant