mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 04:50:25 +03:00
Made eth_ntoa() public for use in legacy drivers' DBG() statements.
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
extern struct ll_protocol ethernet_protocol;
|
extern struct ll_protocol ethernet_protocol;
|
||||||
|
|
||||||
|
extern const char * eth_ntoa ( const void *ll_addr );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocate Ethernet device
|
* Allocate Ethernet device
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ static int eth_rx ( struct pk_buff *pkb, struct net_device *netdev ) {
|
|||||||
* @v ll_addr Link-layer address
|
* @v ll_addr Link-layer address
|
||||||
* @ret string Link-layer address in human-readable format
|
* @ret string Link-layer address in human-readable format
|
||||||
*/
|
*/
|
||||||
static const char * eth_ntoa ( const void *ll_addr ) {
|
const char * eth_ntoa ( const void *ll_addr ) {
|
||||||
static char buf[18]; /* "00:00:00:00:00:00" */
|
static char buf[18]; /* "00:00:00:00:00:00" */
|
||||||
const uint8_t *eth_addr = ll_addr;
|
const uint8_t *eth_addr = ll_addr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user