Create generic method to extract mac address from EUI-64 constructed addresses
authorAndrii Kryzhyk <kandrew@fb.com>
Thu, 24 Aug 2017 19:08:18 +0000 (12:08 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 24 Aug 2017 19:30:03 +0000 (12:30 -0700)
commitde75bdc4d39c3983ff8b1d09c4eddab415bc893b
treee3f0230ffad13b10e971599cb3ec529185d3b355
parentf2d4ac87c2a6c1903e181f4bc76ce6e7b13620c1
Create generic method to extract mac address from EUI-64 constructed addresses

Summary: Link local is not the only type of address that is based on mac address, therefore create generic function to extract mac address from EUI-64 autoconfigured addresses using the same logic as for getMacAddressFromLinkLocal

Reviewed By: pallotron

Differential Revision: D5697781

fbshipit-source-id: 4d69085a1d8f08e06496b8a9b638ac7ff31c6c3a
folly/IPAddressV6.cpp
folly/IPAddressV6.h
folly/test/IPAddressTest.cpp