From 0b65c8cad6ed1b03ce1870856b3496c7be1f8bf1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 30 Aug 2013 19:05:03 +0100 Subject: [netdevice] Add method for generating EUI-64 address from link-layer address Signed-off-by: Michael Brown --- src/include/ipxe/netdevice.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/ipxe/netdevice.h') diff --git a/src/include/ipxe/netdevice.h b/src/include/ipxe/netdevice.h index 7288ad86d..7f819d9ab 100644 --- a/src/include/ipxe/netdevice.h +++ b/src/include/ipxe/netdevice.h @@ -175,8 +175,17 @@ struct ll_protocol { * * @v ll_addr Link-layer address * @v eth_addr Ethernet-compatible address to fill in + * @ret rc Return status code */ int ( * eth_addr ) ( const void *ll_addr, void *eth_addr ); + /** + * Generate EUI-64 address + * + * @v ll_addr Link-layer address + * @v eui64 EUI-64 address to fill in + * @ret rc Return status code + */ + int ( * eui64 ) ( const void *ll_addr, void *eui64 ); /** Link-layer protocol * * This is an ARPHRD_XXX constant, in network byte order. -- cgit