瀏覽代碼

[netdevice] Increase maximum network-layer address length

IPv6 uses 16-byte network-layer addresses.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
c9ed9cb4e7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/include/ipxe/netdevice.h

+ 1
- 1
src/include/ipxe/netdevice.h 查看文件

@@ -44,7 +44,7 @@ struct device;
44 44
 #define MAX_LL_HEADER_LEN 36
45 45
 
46 46
 /** Maximum length of a network-layer address */
47
-#define MAX_NET_ADDR_LEN 4
47
+#define MAX_NET_ADDR_LEN 16
48 48
 
49 49
 /** Maximum length of a network-layer header
50 50
  *

Loading…
取消
儲存