aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-01-15 21:36:08 +0000
committerMichael Brown <mcb30@ipxe.org>2023-01-15 21:36:08 +0000
commit5a2fa6040e17562ce742df09aa20b8774b3879c5 (patch)
tree608b47590365c52ca7e6c767d32d6487689e7312 /src/include/ipxe/efi
parentc4c03e5be867a9b7be4dc48fe6576deca1dce8d8 (diff)
downloadipxe-5a2fa6040e17562ce742df09aa20b8774b3879c5.zip
ipxe-5a2fa6040e17562ce742df09aa20b8774b3879c5.tar.gz
ipxe-5a2fa6040e17562ce742df09aa20b8774b3879c5.tar.bz2
[autoboot] Include VLAN tag in filter for identifying autoboot device
When chainloading iPXE from a VLAN device, the MAC address of the loaded image's device handle will match the MAC address of the trunk device created by iPXE, and the autoboot process will then erroneously consider the trunk device to be an autoboot device. Fix by recording the VLAN tag along with the MAC address, and treating the VLAN tag as part of the filter used to match the MAC address against candidate network devices. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_autoboot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/ipxe/efi/efi_autoboot.h b/src/include/ipxe/efi/efi_autoboot.h
index 706885e..94fd2d7 100644
--- a/src/include/ipxe/efi/efi_autoboot.h
+++ b/src/include/ipxe/efi/efi_autoboot.h
@@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/efi/efi.h>
-extern int efi_set_autoboot_ll_addr ( EFI_HANDLE device );
+extern int efi_set_autoboot_ll_addr ( EFI_HANDLE device,
+ EFI_DEVICE_PATH_PROTOCOL *path );
#endif /* _IPXE_EFI_AUTOBOOT_H */