Ver código fonte

[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 anos atrás
pai
commit
c9ed9cb4e7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/include/ipxe/netdevice.h

+ 1
- 1
src/include/ipxe/netdevice.h Ver arquivo

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

Carregando…
Cancelar
Salvar