Provide a buffer in base memory for code to fill with generated DHCP data.
This commit is contained in:
parent
160e66dbb9
commit
ff7d0af585
|
@ -0,0 +1,29 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2007 Michael Brown <mbrown@fensystems.co.uk>.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation; either version 2 of the
|
||||||
|
* License, or any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* DHCP parameter block provided to external programs in base memory
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dhcp_basemem.h>
|
||||||
|
|
||||||
|
#undef dhcp_basemem
|
||||||
|
char __data16_array ( dhcp_basemem, [DHCP_BASEMEM_LEN] );
|
|
@ -0,0 +1,13 @@
|
||||||
|
#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 */
|
Reference in New Issue