summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-12-14 00:46:19 +0000
committergVisor bot <gvisor-bot@google.com>2019-12-14 00:46:19 +0000
commit21162df9cf279e464648605d7498360acead589e (patch)
tree53314b95264b4864b900afb8e68bc25fc6c7791c /pkg/tcpip/stack
parentb2317c2f1601b4c6c4de7d6777f4bc867d47aa7f (diff)
parentad80dcf47077a1938631fe36f6b406256f3f3f4f (diff)
Merge release-20191210.0-29-gad80dcf (automated)
Diffstat (limited to 'pkg/tcpip/stack')
-rwxr-xr-xpkg/tcpip/stack/ndp.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/tcpip/stack/ndp.go b/pkg/tcpip/stack/ndp.go
index 060a2e7c6..27bd02e76 100755
--- a/pkg/tcpip/stack/ndp.go
+++ b/pkg/tcpip/stack/ndp.go
@@ -1049,11 +1049,11 @@ func (ndp *ndpState) handleAutonomousPrefixInformation(pi header.NDPPrefixInform
return
}
- // Generate an address within prefix from the EUI-64 of ndp's NIC's
- // Ethernet MAC address.
+ // Generate an address within prefix from the modified EUI-64 of ndp's
+ // NIC's Ethernet MAC address.
addrBytes := make([]byte, header.IPv6AddressSize)
copy(addrBytes[:header.IIDOffsetInIPv6Address], prefix.ID()[:header.IIDOffsetInIPv6Address])
- header.EthernetAdddressToEUI64IntoBuf(linkAddr, addrBytes[header.IIDOffsetInIPv6Address:])
+ header.EthernetAdddressToModifiedEUI64IntoBuf(linkAddr, addrBytes[header.IIDOffsetInIPv6Address:])
addr := tcpip.Address(addrBytes)
addrWithPrefix := tcpip.AddressWithPrefix{
Address: addr,