summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/registration.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-06 03:18:50 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-06 03:18:50 +0000
commitbcebd1a3ae085b13af7abe5751e06f7f05157487 (patch)
treea606587a2308d925fb7c9b2fb6ee72425a8a0fab /pkg/tcpip/stack/registration.go
parent74bc9ab610161a8d1f138ff8558dbb5c6a7edc59 (diff)
parent06e33cd737c59623ddcca60eacefb112fc1a0cd4 (diff)
Merge release-20201030.0-38-g06e33cd73 (automated)
Diffstat (limited to 'pkg/tcpip/stack/registration.go')
-rw-r--r--pkg/tcpip/stack/registration.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/registration.go b/pkg/tcpip/stack/registration.go
index 72131ca24..b8f333057 100644
--- a/pkg/tcpip/stack/registration.go
+++ b/pkg/tcpip/stack/registration.go
@@ -340,6 +340,9 @@ type AssignableAddressEndpoint interface {
// AddressWithPrefix returns the endpoint's address.
AddressWithPrefix() tcpip.AddressWithPrefix
+ // Subnet returns the subnet of the endpoint's address.
+ Subnet() tcpip.Subnet
+
// IsAssigned returns whether or not the endpoint is considered bound
// to its NetworkEndpoint.
IsAssigned(allowExpired bool) bool