diff options
author | Eyal Soha <eyalsoha@google.com> | 2020-01-09 13:06:24 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-09 13:07:53 -0800 |
commit | 8643933d6e58492cbe9d5c78124873ab40f65feb (patch) | |
tree | 75323a2be79e5e0a67ee8af490478d3fa7129ae7 /pkg/tcpip/tcpip.go | |
parent | e752ddbb72d89b19863a6b50d99814149a08d5fe (diff) |
Change BindToDeviceOption to store NICID
This makes it possible to call the sockopt from go even when the NIC has no
name.
PiperOrigin-RevId: 288955236
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index 1eca76c30..72b5ce179 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -552,7 +552,7 @@ type ReusePortOption int // BindToDeviceOption is used by SetSockOpt/GetSockOpt to specify that sockets // should bind only on a specific NIC. -type BindToDeviceOption string +type BindToDeviceOption NICID // QuickAckOption is stubbed out in SetSockOpt/GetSockOpt. type QuickAckOption int |