aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi/efi_cachedhcp.h
AgeCommit message (Collapse)AuthorFilesLines
2022-12-22[cachedhcp] Include VLAN tag in filter for applying cached DHCPACKMichael Brown1-1/+2
When chainloading iPXE from a VLAN device, the MAC address within the cached DHCPACK will match the MAC address of the trunk device created by iPXE, and the cached DHCPACK will then end up being erroneously applied to the trunk device. This tends to break outbound IPv4 routing, since both the trunk and VLAN devices will have the same assigned IPv4 address. Fix by recording the VLAN tag along with the cached DHCPACK, and treating the VLAN tag as part of the filter used to match the cached DHCPACK against candidate network devices. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2021-02-17[efi] Record cached DHCPACK from loaded image's device handle, if presentcachedhcpMichael Brown1-0/+16
Record the cached DHCPACK obtained from the EFI_PXE_BASE_CODE_PROTOCOL instance installed on the loaded image's device handle, if present. This allows a chainloaded UEFI iPXE to reuse the IPv4 address and DHCP options previously obtained by the built-in PXE stack, as is already done for a chainloaded BIOS iPXE. Signed-off-by: Michael Brown <mcb30@ipxe.org>