Sfoglia il codice sorgente

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

tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
0dca1dc8ce
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2
    0
      src/include/gpxe/ethernet.h
  2. 1
    1
      src/net/ethernet.c

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

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

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

@@ -93,7 +93,7 @@ static int eth_rx ( struct pk_buff *pkb, struct net_device *netdev ) {
93 93
  * @v ll_addr	Link-layer address
94 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 97
 	static char buf[18]; /* "00:00:00:00:00:00" */
98 98
 	const uint8_t *eth_addr = ll_addr;
99 99
 

Loading…
Annulla
Salva