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 782B

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