diff options
Diffstat (limited to 'src/include/ipxe/ethernet.h')
-rw-r--r-- | src/include/ipxe/ethernet.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/ipxe/ethernet.h b/src/include/ipxe/ethernet.h new file mode 100644 index 00000000..5799092a --- /dev/null +++ b/src/include/ipxe/ethernet.h @@ -0,0 +1,21 @@ +#ifndef _IPXE_ETHERNET_H +#define _IPXE_ETHERNET_H + +/** @file + * + * Ethernet protocol + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <stdint.h> + +extern void eth_init_addr ( const void *hw_addr, void *ll_addr ); +extern const char * eth_ntoa ( const void *ll_addr ); +extern int eth_mc_hash ( unsigned int af, const void *net_addr, + void *ll_addr ); +extern int eth_eth_addr ( const void *ll_addr, void *eth_addr ); +extern struct net_device * alloc_etherdev ( size_t priv_size ); + +#endif /* _IPXE_ETHERNET_H */ |