summaryrefslogtreecommitdiffstats
path: root/src/arch/i386
diff options
context:
space:
mode:
authorMichael Brown2007-07-31 04:02:21 +0200
committerMichael Brown2007-07-31 04:02:21 +0200
commit5e26df03251378c2990e74ad0c45eb90e4a98256 (patch)
tree6a261b099acabd6f8a46d450d12bbb5dd2a40c68 /src/arch/i386
parentAdded the AoE boot information table as used by Vampyre's AoE (diff)
downloadipxe-5e26df03251378c2990e74ad0c45eb90e4a98256.tar.gz
ipxe-5e26df03251378c2990e74ad0c45eb90e4a98256.tar.xz
ipxe-5e26df03251378c2990e74ad0c45eb90e4a98256.zip
Centralise construction of the DHCP request and response packets.
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/image/nbi.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/arch/i386/image/nbi.c b/src/arch/i386/image/nbi.c
index 42596f057..2de381d07 100644
--- a/src/arch/i386/image/nbi.c
+++ b/src/arch/i386/image/nbi.c
@@ -397,16 +397,13 @@ static int nbi_prepare_dhcp ( struct image *image ) {
return -ENODEV;
}
- if ( ( rc = create_dhcp_packet ( boot_netdev, DHCPACK, basemem_packet,
- sizeof ( basemem_packet ),
- &dhcppkt ) ) != 0 ) {
+ if ( ( rc = create_dhcp_response ( boot_netdev, DHCPACK, NULL,
+ basemem_packet,
+ sizeof ( basemem_packet ),
+ &dhcppkt ) ) != 0 ) {
DBGC ( image, "NBI %p failed to build DHCP packet\n", image );
return rc;
}
- if ( ( rc = copy_dhcp_packet_options ( &dhcppkt, NULL ) ) != 0 ) {
- DBGC ( image, "NBI %p failed to copy DHCP options\n", image );
- return rc;
- }
return 0;
}