summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/inet
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-02-05 02:04:06 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-09-26 23:34:44 +0200
commite30c52d292d5f03883a83d0a6bec71335ab99342 (patch)
tree60d49c63deb8fa6ed4677428e49e7eacf9dc3225 /pkg/sentry/inet
parentea43d9ffc0fd7bc1f42bada76006dbcf26f752af (diff)
Implement dummy network interfacesfeature/dummy-iface
Diffstat (limited to 'pkg/sentry/inet')
-rw-r--r--pkg/sentry/inet/inet.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/inet/inet.go b/pkg/sentry/inet/inet.go
index f92706ab7..2e128f7a5 100644
--- a/pkg/sentry/inet/inet.go
+++ b/pkg/sentry/inet/inet.go
@@ -27,6 +27,9 @@ type Stack interface {
// integers.
Interfaces() map[int32]Interface
+ // AddDummyInterface adds a new dummy network interface
+ AddDummyInterface(name string) (int32, error)
+
// RemoveInterface removes the specified network interface.
RemoveInterface(idx int32) error