浏览代码

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

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
0dca1dc8ce
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
    0
      src/include/gpxe/ethernet.h
  2. 1
    1
      src/net/ethernet.c

+ 2
- 0
src/include/gpxe/ethernet.h 查看文件

@@ -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 查看文件

@@ -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
 

正在加载...
取消
保存