]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[autoboot] Include VLAN tag in filter for identifying autoboot device
authorMichael Brown <mcb30@ipxe.org>
Sun, 15 Jan 2023 21:36:08 +0000 (21:36 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 15 Jan 2023 21:36:08 +0000 (21:36 +0000)
commit5a2fa6040e17562ce742df09aa20b8774b3879c5
tree608b47590365c52ca7e6c767d32d6487689e7312
parentc4c03e5be867a9b7be4dc48fe6576deca1dce8d8
[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>
src/include/ipxe/efi/efi_autoboot.h
src/include/usr/autoboot.h
src/interface/efi/efi_autoboot.c
src/interface/efi/efiprefix.c
src/usr/autoboot.c