dhcpopts.h
Go to the documentation of this file.00001 #ifndef _GPXE_DHCPOPTS_H
00002 #define _GPXE_DHCPOPTS_H
00003
00004
00005
00006
00007
00008
00009
00010 FILE_LICENCE ( GPL2_OR_LATER );
00011
00012 #include <stdint.h>
00013
00014
00015 struct dhcp_options {
00016
00017 void *data;
00018
00019 size_t len;
00020
00021 size_t max_len;
00022 };
00023
00024 extern int dhcpopt_store ( struct dhcp_options *options, unsigned int tag,
00025 const void *data, size_t len );
00026 extern int dhcpopt_extensible_store ( struct dhcp_options *options,
00027 unsigned int tag,
00028 const void *data, size_t len );
00029 extern int dhcpopt_fetch ( struct dhcp_options *options, unsigned int tag,
00030 void *data, size_t len );
00031 extern void dhcpopt_init ( struct dhcp_options *options,
00032 void *data, size_t max_len );
00033
00034 #endif