diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-04-02 19:36:00 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-04-02 22:59:50 +0100 |
commit | b940d54235579f2534c12494322876fff555cf36 (patch) | |
tree | c01091023d13a54e37f0a18b183e41bbf705e721 /src/include/ipxe/cachedhcp.h | |
parent | b66f6025fa50f929c8e6448c383ffec273d41e6c (diff) | |
download | ipxe-b940d54235579f2534c12494322876fff555cf36.tar.gz |
[cachedhcp] Allow cached DHCPACK to apply to temporary network devices
Retain a reference to the cached DHCPACK until the late startup phase,
and allow it to be recycled for reuse. This allows the cached DHCPACK
to be used for a temporary MNP network device and then subsequently
reused for the corresponding real network device.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/cachedhcp.h')
-rw-r--r-- | src/include/ipxe/cachedhcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/cachedhcp.h b/src/include/ipxe/cachedhcp.h index 4ce4a9f2a..8ebee3b7b 100644 --- a/src/include/ipxe/cachedhcp.h +++ b/src/include/ipxe/cachedhcp.h @@ -12,6 +12,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <stddef.h> #include <ipxe/uaccess.h> +struct net_device; struct cached_dhcp_packet; extern struct cached_dhcp_packet cached_dhcpack; @@ -21,5 +22,6 @@ extern struct cached_dhcp_packet cached_pxebs; extern int cachedhcp_record ( struct cached_dhcp_packet *cache, unsigned int vlan, userptr_t data, size_t max_len ); +extern void cachedhcp_recycle ( struct net_device *netdev ); #endif /* _IPXE_CACHEDHCP_H */ |