Use a common base-memory packet buffer for DHCP construction (as used

by PXE and NBI) and UNDI packets (as used by undinet and UNDI).
This commit is contained in:
Michael Brown
2007-07-02 18:33:41 +01:00
parent 5f17089b14
commit e42eba4af4
6 changed files with 31 additions and 36 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef BASEMEM_PACKET_H
#define BASEMEM_PACKET_H
#include <realmode.h>
/** Maximum length of base memory packet buffer */
#define BASEMEM_PACKET_LEN 1514
/** Base memory packet buffer */
extern char __data16_array ( basemem_packet, [BASEMEM_PACKET_LEN] );
#define basemem_packet __use_data16 ( basemem_packet )
#endif /* BASEMEM_PACKET_H */
-13
View File
@@ -1,13 +0,0 @@
#ifndef DHCP_BASEMEM_H
#define DHCP_BASEMEM_H
#include <realmode.h>
/** Maximum length of a DHCP data buffer */
#define DHCP_BASEMEM_LEN 1514
/** DHCP data buffer */
extern char __data16_array ( dhcp_basemem, [DHCP_BASEMEM_LEN] );
#define dhcp_basemem __use_data16 ( dhcp_basemem )
#endif /* DHCP_BASEMEM_H */