MCPcopy Index your code
hub / github.com/google/gvisor / GetBindToDevice

Method GetBindToDevice

pkg/tcpip/socketops.go:691–693  ·  view source on GitHub ↗

GetBindToDevice gets value for SO_BINDTODEVICE option.

()

Source from the content-addressed store, hash-verified

689
690// GetBindToDevice gets value for SO_BINDTODEVICE option.
691func (so *SocketOptions) GetBindToDevice() int32 {
692 return so.bindToDevice.Load()
693}
694
695// SetBindToDevice sets value for SO_BINDTODEVICE option. If bindToDevice is
696// zero, the socket device binding is removed.

Callers 11

GetSockOptSocketFunction · 0.80
SetSockOptSocketFunction · 0.80
TestBindToDeviceOptionFunction · 0.80
CreateEndpointMethod · 0.80
registerWithStackMethod · 0.80
CloseMethod · 0.80
registerWithStackMethod · 0.80
registerEndpointMethod · 0.80
bindLockedMethod · 0.80
TestBindToDeviceOptionFunction · 0.80

Calls 1

LoadMethod · 0.65

Tested by 2

TestBindToDeviceOptionFunction · 0.64
TestBindToDeviceOptionFunction · 0.64