Skip to content

device: support SO_BINDTODEVICE#1057

Open
russelltg wants to merge 1 commit intoAravisProject:mainfrom
russelltg:so-bindtodevice
Open

device: support SO_BINDTODEVICE#1057
russelltg wants to merge 1 commit intoAravisProject:mainfrom
russelltg:so-bindtodevice

Conversation

@russelltg
Copy link
Contributor

some networking situations (e.g, VRFs) require calling SO_BINDTODEVICE on sockets to disambiguate which L3 network it should discover/bind to

this adds a function to set it on the discover address, which gets flowed down to device & stream sockets.

it didn't seem like there was a nice non-global way to handle this as that's how discovery interface names are set in general.

some networking situations (e.g, VRFs) require calling SO_BINDTODEVICE on sockets to disambiguate which L3 network it should discover/bind to

this adds a function to set it on the discover address, which gets flowed down to device & stream sockets.

it didn't seem like there was a nice non-global way to handle this as that's how discovery interface names are set in general.
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