]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pxe] Always retrieve cached DHCPACK and apply to relevant network device
authorMichael Brown <mcb30@ipxe.org>
Fri, 25 Oct 2013 16:24:09 +0000 (17:24 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 25 Oct 2013 16:29:25 +0000 (17:29 +0100)
commit10d19bd2ac302cd5237e7b1ca200760594a3c8c2
tree8759bfa0d517e82eeec8ca3829f56cd291465fda
parent1aa67eba161f0e1410d8028bd60ee6778ebfa977
[pxe] Always retrieve cached DHCPACK and apply to relevant network device

When chainloading, always retrieve the cached DHCPACK packet from the
underlying PXE stack, and apply it as the original contents of the
"net<X>.dhcp" settings block.  This allows cached DHCP settings to be
used for any chainloaded iPXE binary (not just undionly.kkpxe).

This change eliminates the undocumented "use-cached" setting.  Issuing
the "dhcp" command will now always result in a fresh DHCP request.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/core/cachedhcp.c [new file with mode: 0644]
src/arch/i386/interface/pxeparent/pxeparent_dhcp.c [deleted file]
src/arch/i386/prefix/pxeprefix.S
src/include/ipxe/dhcp.h
src/net/cachedhcp.c [deleted file]
src/net/udp/dhcp.c
src/usr/dhcpmgmt.c