summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/inet/inet.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/inet/inet.go')
-rw-r--r--pkg/sentry/inet/inet.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/sentry/inet/inet.go b/pkg/sentry/inet/inet.go
index b121fc1b4..f92706ab7 100644
--- a/pkg/sentry/inet/inet.go
+++ b/pkg/sentry/inet/inet.go
@@ -42,6 +42,12 @@ type Stack interface {
// identified by idx.
RemoveInterfaceAddr(idx int32, addr InterfaceAddr) error
+ AddNeighbor(neighbor Neighbor) error
+
+ RemoveNeighbor(neighbor Neighbor) error
+
+ Neighbors() ([]Neighbor, error)
+
// SupportsIPv6 returns true if the stack supports IPv6 connectivity.
SupportsIPv6() bool
@@ -137,6 +143,14 @@ type InterfaceAddr struct {
Addr []byte
}
+type Neighbor struct {
+ Family uint8
+ Idx int32
+ State uint16
+ Addr []byte
+ LinkAddr []byte
+}
+
// TCPBufferSize contains settings controlling TCP buffer sizing.
//
// +stateify savable