mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 22:08:48 +03:00
[Settings] Migrate DHCP and NVO code to the new settings API (untested)
This commit is contained in:
32
src/include/gpxe/dhcpopts.h
Normal file
32
src/include/gpxe/dhcpopts.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef _GPXE_DHCPOPTS_H
|
||||
#define _GPXE_DHCPOPTS_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* DHCP options
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gpxe/dhcp.h>
|
||||
|
||||
/** A DHCP options block */
|
||||
struct dhcp_options {
|
||||
/** Option block raw data */
|
||||
void *data;
|
||||
/** Option block length */
|
||||
size_t len;
|
||||
/** Option block maximum length */
|
||||
size_t max_len;
|
||||
};
|
||||
|
||||
extern int dhcpopt_store ( struct dhcp_options *options, unsigned int tag,
|
||||
const void *data, size_t len );
|
||||
extern int dhcpopt_extensible_store ( struct dhcp_options *options,
|
||||
unsigned int tag,
|
||||
const void *data, size_t len );
|
||||
extern int dhcpopt_fetch ( struct dhcp_options *options, unsigned int tag,
|
||||
void *data, size_t len );
|
||||
extern void dhcpopt_init ( struct dhcp_options *options,
|
||||
void *data, size_t max_len );
|
||||
|
||||
#endif /* _GPXE_DHCPOPTS_H */
|
||||
Reference in New Issue
Block a user