diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-01-21 02:29:58 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-21 02:29:58 +0000 |
commit | ebb2dcbcde99a9862842458cfdc4906f454fae34 (patch) | |
tree | a1870bf6bfff26275102b3a126d6690b1c8e1ee0 /pkg/sentry/socket/hostinet/socket.go | |
parent | 53c06c8ef397c01a39f2848cf5f93ac2b88e8b4d (diff) | |
parent | b0136253e6de393b2892e0fee8d85d636e82616c (diff) |
Merge release-20210112.0-54-gb0136253e (automated)
Diffstat (limited to 'pkg/sentry/socket/hostinet/socket.go')
-rw-r--r-- | pkg/sentry/socket/hostinet/socket.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/socket/hostinet/socket.go b/pkg/sentry/socket/hostinet/socket.go index 5b868216d..17f59ba1f 100644 --- a/pkg/sentry/socket/hostinet/socket.go +++ b/pkg/sentry/socket/hostinet/socket.go @@ -377,10 +377,8 @@ func (s *socketOpsCommon) SetSockOpt(t *kernel.Task, level int, name int, opt [] switch level { case linux.SOL_IP: switch name { - case linux.IP_TOS, linux.IP_RECVTOS, linux.IP_RECVORIGDSTADDR, linux.IP_RECVERR: + case linux.IP_TOS, linux.IP_RECVTOS, linux.IP_PKTINFO, linux.IP_RECVORIGDSTADDR, linux.IP_RECVERR: optlen = sizeofInt32 - case linux.IP_PKTINFO: - optlen = linux.SizeOfControlMessageIPPacketInfo } case linux.SOL_IPV6: switch name { |