Explorar el Código

[netdevice] Adjust maximum link-layer header length for 802.11

Signed-off-by: Michael Brown <mcb30@etherboot.org>
tags/v0.9.8
Joshua Oreman hace 15 años
padre
commit
254bdc2a8e
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5
    4
      src/include/gpxe/netdevice.h

+ 5
- 4
src/include/gpxe/netdevice.h Ver fichero

@@ -29,11 +29,12 @@ struct device;
29 29
 
30 30
 /** Maximum length of a link-layer header
31 31
  *
32
- * The longest currently-supported link-layer header is for Ethernet.
33
- * (The IPoIB link-layer pseudo-header doesn't actually include
34
- * link-layer addresses; see ipoib.c for details).
32
+ * The longest currently-supported link-layer header is for 802.11: a
33
+ * 24-byte frame header plus an 8-byte 802.3 LLC/SNAP header.  (The
34
+ * IPoIB link-layer pseudo-header doesn't actually include link-layer
35
+ * addresses; see ipoib.c for details).
35 36
  */
36
-#define MAX_LL_HEADER_LEN 14
37
+#define MAX_LL_HEADER_LEN 32
37 38
 
38 39
 /** Maximum length of a network-layer address */
39 40
 #define MAX_NET_ADDR_LEN 4

Loading…
Cancelar
Guardar