You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dhcpopts.h 815B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _GPXE_DHCPOPTS_H
  2. #define _GPXE_DHCPOPTS_H
  3. /** @file
  4. *
  5. * DHCP options
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  9. #include <stdint.h>
  10. /** A DHCP options block */
  11. struct dhcp_options {
  12. /** Option block raw data */
  13. void *data;
  14. /** Option block length */
  15. size_t len;
  16. /** Option block maximum length */
  17. size_t max_len;
  18. };
  19. extern int dhcpopt_store ( struct dhcp_options *options, unsigned int tag,
  20. const void *data, size_t len );
  21. extern int dhcpopt_extensible_store ( struct dhcp_options *options,
  22. unsigned int tag,
  23. const void *data, size_t len );
  24. extern int dhcpopt_fetch ( struct dhcp_options *options, unsigned int tag,
  25. void *data, size_t len );
  26. extern void dhcpopt_init ( struct dhcp_options *options,
  27. void *data, size_t max_len );
  28. #endif /* _GPXE_DHCPOPTS_H */