aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/ethernet.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-06-01 23:26:20 +0100
committerMichael Brown <mcb30@ipxe.org>2014-06-01 23:32:24 +0100
commitd630052e6f44ce215503fb7f20819a1382ebfa9b (patch)
treebcf5bd83950e145011e05dd76634181e4480c6cc /src/include/ipxe/ethernet.h
parent9f0b7f428af04d0c5ddda78f9b034625f2f91831 (diff)
downloadipxe-d630052e6f44ce215503fb7f20819a1382ebfa9b.zip
ipxe-d630052e6f44ce215503fb7f20819a1382ebfa9b.tar.gz
ipxe-d630052e6f44ce215503fb7f20819a1382ebfa9b.tar.bz2
[ethernet] Provide eth_random_addr() to generate random Ethernet addresses
Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/ethernet.h')
-rw-r--r--src/include/ipxe/ethernet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/ethernet.h b/src/include/ipxe/ethernet.h
index 5ffc45b..b28a6b8 100644
--- a/src/include/ipxe/ethernet.h
+++ b/src/include/ipxe/ethernet.h
@@ -87,6 +87,7 @@ extern int eth_pull ( struct net_device *netdev, struct io_buffer *iobuf,
const void **ll_dest, const void **ll_source,
uint16_t *net_proto, unsigned int *flags );
extern void eth_init_addr ( const void *hw_addr, void *ll_addr );
+extern void eth_random_addr ( void *hw_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 );