summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-09-02 02:48:40 +0000
committergVisor bot <gvisor-bot@google.com>2021-09-02 02:48:40 +0000
commitc7facf4b01f7c5a3d4f998ffda3f5ef400229078 (patch)
treeb74e0d63f5c7f2f24f121994cbaf5555f48d701d /pkg/sentry
parentb7e54559b3725cfb23f753143aac0c2c0b116e12 (diff)
parentdfb3273f887a80c25a6d133fd5a082153ba58570 (diff)
Merge release-20210823.0-44-gdfb3273f8 (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/socket/socket.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/socket/socket.go b/pkg/sentry/socket/socket.go
index 658e90bb9..83b9d9389 100644
--- a/pkg/sentry/socket/socket.go
+++ b/pkg/sentry/socket/socket.go
@@ -750,6 +750,7 @@ func AddressAndFamily(addr []byte) (tcpip.FullAddress, uint16, *syserr.Error) {
return tcpip.FullAddress{
NIC: tcpip.NICID(a.InterfaceIndex),
Addr: tcpip.Address(a.HardwareAddr[:header.EthernetAddressSize]),
+ Port: Ntohs(a.Protocol),
}, family, nil
case linux.AF_UNSPEC: