summaryrefslogtreecommitdiffstats
path: root/src/interface/pxe
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/interface/pxe
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/interface/pxe')
-rw-r--r--src/interface/pxe/pxe_preboot.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/interface/pxe/pxe_preboot.c b/src/interface/pxe/pxe_preboot.c
index 2d6f135c2..ae5972285 100644
--- a/src/interface/pxe/pxe_preboot.c
+++ b/src/interface/pxe/pxe_preboot.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <gpxe/uaccess.h>
#include <gpxe/dhcp.h>
+#include <gpxe/dhcppkt.h>
#include <gpxe/device.h>
#include <gpxe/netdevice.h>
#include <gpxe/isapnp.h>
@@ -117,9 +118,10 @@ PXENV_EXIT_t pxenv_unload_stack ( struct s_PXENV_UNLOAD_STACK *unload_stack ) {
PXENV_EXIT_t pxenv_get_cached_info ( struct s_PXENV_GET_CACHED_INFO
*get_cached_info ) {
struct dhcp_packet dhcppkt;
- int ( * dhcp_packet_creator ) ( struct net_device *, int,
- struct dhcp_option_block *, void *,
- size_t, struct dhcp_packet * );
+ int ( * dhcp_packet_creator ) ( struct dhcp_packet *dhcppkt,
+ struct net_device *netdev, int msgtype,
+ struct settings *settings,
+ void *data, size_t max_len );
unsigned int idx;
unsigned int msgtype;
size_t len;
@@ -149,10 +151,9 @@ PXENV_EXIT_t pxenv_get_cached_info ( struct s_PXENV_GET_CACHED_INFO
dhcp_packet_creator = create_dhcp_response;
msgtype = DHCPACK;
}
- if ( ( rc = dhcp_packet_creator ( pxe_netdev, msgtype,
- NULL, &cached_info[idx],
- sizeof ( cached_info[idx] ),
- &dhcppkt ) ) != 0 ) {
+ if ( ( rc = dhcp_packet_creator ( &dhcppkt, pxe_netdev,
+ msgtype, NULL, &cached_info[idx],
+ sizeof ( cached_info[idx] ) ) ) != 0 ) {
DBG ( " failed to build packet" );
goto err;
}