From 91e2d15a627a5997f7d237e6c5695403c148f4e5 Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Mon, 5 Oct 2020 13:15:06 -0700 Subject: Remove AssignableAddressEndpoint.NetworkEndpoint We can get the network endpoint directly from the NIC. This is a preparatory CL for when a Route needs to hold a dedicated NIC as its output interface. This is because when forwarding is enabled, packets may be sent from a NIC different from the NIC a route's local address is associated with. PiperOrigin-RevId: 335484500 --- pkg/tcpip/stack/addressable_endpoint_state.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkg/tcpip/stack/addressable_endpoint_state.go') diff --git a/pkg/tcpip/stack/addressable_endpoint_state.go b/pkg/tcpip/stack/addressable_endpoint_state.go index db8ac1c2b..4d3acab96 100644 --- a/pkg/tcpip/stack/addressable_endpoint_state.go +++ b/pkg/tcpip/stack/addressable_endpoint_state.go @@ -679,11 +679,6 @@ type addressState struct { } } -// NetworkEndpoint implements AddressEndpoint. -func (a *addressState) NetworkEndpoint() NetworkEndpoint { - return a.addressableEndpointState.networkEndpoint -} - // AddressWithPrefix implements AddressEndpoint. func (a *addressState) AddressWithPrefix() tcpip.AddressWithPrefix { return a.addr -- cgit v1.2.3