Skip to content

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.

2 participants