diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-12-02 19:39:12 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-02 19:39:12 +0000 |
commit | 073f88c1bf9c665bddc683249552c5d14b86f345 (patch) | |
tree | 0e68f8574152a97a402b01c6c26322a3abf5903a /pkg/sentry/socket/netstack/provider_vfs2.go | |
parent | 6e7abae1422faede10414432c3cfa13b24957466 (diff) | |
parent | 1375a87a209ef1a2523ada84254e3a0101afb4f5 (diff) |
Merge release-20201117.0-97-g1375a87a2 (automated)
Diffstat (limited to 'pkg/sentry/socket/netstack/provider_vfs2.go')
-rw-r--r-- | pkg/sentry/socket/netstack/provider_vfs2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/netstack/provider_vfs2.go b/pkg/sentry/socket/netstack/provider_vfs2.go index 2a01143f6..0af805246 100644 --- a/pkg/sentry/socket/netstack/provider_vfs2.go +++ b/pkg/sentry/socket/netstack/provider_vfs2.go @@ -102,7 +102,7 @@ func packetSocketVFS2(t *kernel.Task, epStack *Stack, stype linux.SockType, prot // protocol is passed in network byte order, but netstack wants it in // host order. - netProto := tcpip.NetworkProtocolNumber(ntohs(uint16(protocol))) + netProto := tcpip.NetworkProtocolNumber(socket.Ntohs(uint16(protocol))) wq := &waiter.Queue{} ep, err := epStack.Stack.NewPacketEndpoint(cooked, netProto, wq) |