dhcpopts.h

Go to the documentation of this file.
00001 #ifndef _GPXE_DHCPOPTS_H
00002 #define _GPXE_DHCPOPTS_H
00003 
00004 /** @file
00005  *
00006  * DHCP options
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER );
00011 
00012 #include <stdint.h>
00013 
00014 /** A DHCP options block */
00015 struct dhcp_options {
00016         /** Option block raw data */
00017         void *data;
00018         /** Option block length */
00019         size_t len;
00020         /** Option block maximum length */
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 /* _GPXE_DHCPOPTS_H */

Generated on Tue Apr 6 20:01:06 2010 for gPXE by  doxygen 1.5.7.1