Browse Source

Made eth_ntoa() public for use in legacy drivers' DBG() statements.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
0dca1dc8ce
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      src/include/gpxe/ethernet.h
  2. 1
    1
      src/net/ethernet.c

+ 2
- 0
src/include/gpxe/ethernet.h View File

12
 
12
 
13
 extern struct ll_protocol ethernet_protocol;
13
 extern struct ll_protocol ethernet_protocol;
14
 
14
 
15
+extern const char * eth_ntoa ( const void *ll_addr );
16
+
15
 /**
17
 /**
16
  * Allocate Ethernet device
18
  * Allocate Ethernet device
17
  *
19
  *

+ 1
- 1
src/net/ethernet.c View File

93
  * @v ll_addr	Link-layer address
93
  * @v ll_addr	Link-layer address
94
  * @ret string	Link-layer address in human-readable format
94
  * @ret string	Link-layer address in human-readable format
95
  */
95
  */
96
-static const char * eth_ntoa ( const void *ll_addr ) {
96
+const char * eth_ntoa ( const void *ll_addr ) {
97
 	static char buf[18]; /* "00:00:00:00:00:00" */
97
 	static char buf[18]; /* "00:00:00:00:00:00" */
98
 	const uint8_t *eth_addr = ll_addr;
98
 	const uint8_t *eth_addr = ll_addr;
99
 
99
 

Loading…
Cancel
Save