summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/route.go
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-04-09 13:20:05 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-09 13:23:01 -0700
commit973ace6bd9c4a17fe6858d6a0b2977ddfaca7885 (patch)
tree675e621cca1d33784fe8700bd32b86b256377888 /pkg/tcpip/stack/route.go
parent070b76fe7fb0682aa195008292a0b2d008ddd8ff (diff)
Rename IsV6LinkLocalAddress to IsV6LinkLocalUnicastAddress
To match the V4 variant. PiperOrigin-RevId: 367691981
Diffstat (limited to 'pkg/tcpip/stack/route.go')
-rw-r--r--pkg/tcpip/stack/route.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/route.go b/pkg/tcpip/stack/route.go
index 39344808d..4ae6bed5a 100644
--- a/pkg/tcpip/stack/route.go
+++ b/pkg/tcpip/stack/route.go
@@ -132,7 +132,7 @@ func constructAndValidateRoute(netProto tcpip.NetworkProtocolNumber, addressEndp
localAddr = addressEndpoint.AddressWithPrefix().Address
}
- if localAddressNIC != outgoingNIC && header.IsV6LinkLocalAddress(localAddr) {
+ if localAddressNIC != outgoingNIC && header.IsV6LinkLocalUnicastAddress(localAddr) {
addressEndpoint.DecRef()
return nil
}