summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-07-24 23:12:03 +0000
committergVisor bot <gvisor-bot@google.com>2019-07-24 23:12:03 +0000
commitd5cc44be8cb0acd37a79b06b30fb080d492891ba (patch)
treeb6f4a08f808504ce1044f3e2b04bd387b145ef6a /pkg/sentry/socket
parentb218bb73ffeba4adaabfb0bdc73c6987ec7fdc76 (diff)
parent2ed832ff86ee29970d0a3991297de818bda67b9c (diff)
Merge 2ed832ff (automated)
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r--pkg/sentry/socket/epsocket/stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/socket/epsocket/stack.go b/pkg/sentry/socket/epsocket/stack.go
index 7eef19f74..8fe489c0e 100644
--- a/pkg/sentry/socket/epsocket/stack.go
+++ b/pkg/sentry/socket/epsocket/stack.go
@@ -75,8 +75,8 @@ func (s *Stack) InterfaceAddrs() map[int32][]inet.InterfaceAddr {
addrs = append(addrs, inet.InterfaceAddr{
Family: family,
- PrefixLen: uint8(len(a.Address) * 8),
- Addr: []byte(a.Address),
+ PrefixLen: uint8(a.AddressWithPrefix.PrefixLen),
+ Addr: []byte(a.AddressWithPrefix.Address),
// TODO(b/68878065): Other fields.
})
}