diff options
| author | Michael Brown | 2006-09-15 14:34:34 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-09-15 14:34:34 +0200 |
| commit | 0dca1dc8ced3f3ac3e12fc923e75f1ce77629b69 (patch) | |
| tree | 39c80f30cef870d00bb197d86f478910cac13e78 | |
| parent | get rid of compile warnings (except intentionally generated ones) (diff) | |
| download | ipxe-0dca1dc8ced3f3ac3e12fc923e75f1ce77629b69.tar.gz ipxe-0dca1dc8ced3f3ac3e12fc923e75f1ce77629b69.tar.xz ipxe-0dca1dc8ced3f3ac3e12fc923e75f1ce77629b69.zip | |
Made eth_ntoa() public for use in legacy drivers' DBG() statements.
| -rw-r--r-- | src/include/gpxe/ethernet.h | 2 | ||||
| -rw-r--r-- | src/net/ethernet.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/include/gpxe/ethernet.h b/src/include/gpxe/ethernet.h index 0188ac81c..158fe066a 100644 --- a/src/include/gpxe/ethernet.h +++ b/src/include/gpxe/ethernet.h @@ -12,6 +12,8 @@ extern struct ll_protocol ethernet_protocol; +extern const char * eth_ntoa ( const void *ll_addr ); + /** * Allocate Ethernet device * diff --git a/src/net/ethernet.c b/src/net/ethernet.c index 4cdf571c6..690b22182 100644 --- a/src/net/ethernet.c +++ b/src/net/ethernet.c @@ -93,7 +93,7 @@ static int eth_rx ( struct pk_buff *pkb, struct net_device *netdev ) { * @v ll_addr Link-layer address * @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" */ const uint8_t *eth_addr = ll_addr; |
