summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/inet/inet.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-05 02:09:00 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-05 02:09:00 +0000
commitc6929ff8597fb885c7df1b0a6487180d660602d2 (patch)
treee3d2ecc032f0279c9bae0b6261101db6087e86dc /pkg/sentry/inet/inet.go
parentd2dee4e92825f5a68c3a7b1f00fb07471e428617 (diff)
parent665b614e4a6e715bac25bea15c5c29184016e549 (diff)
Merge release-20200127.0-80-g665b614 (automated)
Diffstat (limited to 'pkg/sentry/inet/inet.go')
-rw-r--r--pkg/sentry/inet/inet.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/inet/inet.go b/pkg/sentry/inet/inet.go
index a7dfb78a7..2916a0644 100644
--- a/pkg/sentry/inet/inet.go
+++ b/pkg/sentry/inet/inet.go
@@ -28,6 +28,10 @@ type Stack interface {
// interface indexes to a slice of associated interface address properties.
InterfaceAddrs() map[int32][]InterfaceAddr
+ // AddInterfaceAddr adds an address to the network interface identified by
+ // index.
+ AddInterfaceAddr(idx int32, addr InterfaceAddr) error
+
// SupportsIPv6 returns true if the stack supports IPv6 connectivity.
SupportsIPv6() bool