summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/dhcppkt.h
diff options
context:
space:
mode:
authorMichael Brown2008-03-21 23:15:31 +0100
committerMichael Brown2008-03-21 23:15:31 +0100
commit8afb36c3bc08ff0c9bdf0a8496cb08a8bfe287f3 (patch)
tree4369c087ca4c75593fe6d287fca658516d20a9d8 /src/include/gpxe/dhcppkt.h
parent[DHCP] Kill off some no-longer-used DHCP functions (diff)
downloadipxe-8afb36c3bc08ff0c9bdf0a8496cb08a8bfe287f3.tar.gz
ipxe-8afb36c3bc08ff0c9bdf0a8496cb08a8bfe287f3.tar.xz
ipxe-8afb36c3bc08ff0c9bdf0a8496cb08a8bfe287f3.zip
[Settings] Migrate DHCP and NVO code to the new settings API (untested)
Diffstat (limited to 'src/include/gpxe/dhcppkt.h')
-rw-r--r--src/include/gpxe/dhcppkt.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/include/gpxe/dhcppkt.h b/src/include/gpxe/dhcppkt.h
new file mode 100644
index 000000000..98b8dad8a
--- /dev/null
+++ b/src/include/gpxe/dhcppkt.h
@@ -0,0 +1,34 @@
+#ifndef _GPXE_DHCPPKT_H
+#define _GPXE_DHCPPKT_H
+
+/** @file
+ *
+ * DHCP packets
+ *
+ */
+
+#include <gpxe/dhcp.h>
+#include <gpxe/dhcpopts.h>
+#include <gpxe/settings.h>
+
+/**
+ * A DHCP packet
+ *
+ */
+struct dhcp_packet {
+ /** Settings block */
+ struct settings settings;
+ /** The DHCP packet contents */
+ struct dhcphdr *dhcphdr;
+ /** Maximum length of the DHCP packet buffer */
+ size_t max_len;
+ /** Used length of the DHCP packet buffer */
+ size_t len;
+ /** DHCP option blocks */
+ struct dhcp_options options;
+};
+
+extern void dhcppkt_init ( struct dhcp_packet *dhcppkt, struct refcnt *refcnt,
+ void *data, size_t len );
+
+#endif /* _GPXE_DHCPPKT_H */