diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-01-15 21:36:08 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-01-15 21:36:08 +0000 |
commit | 5a2fa6040e17562ce742df09aa20b8774b3879c5 (patch) | |
tree | 608b47590365c52ca7e6c767d32d6487689e7312 /src/include/usr/autoboot.h | |
parent | c4c03e5be867a9b7be4dc48fe6576deca1dce8d8 (diff) | |
download | ipxe-5a2fa6040e17562ce742df09aa20b8774b3879c5.tar.gz |
[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/usr/autoboot.h')
-rw-r--r-- | src/include/usr/autoboot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/usr/autoboot.h b/src/include/usr/autoboot.h index f88b8494f..3719b8243 100644 --- a/src/include/usr/autoboot.h +++ b/src/include/usr/autoboot.h @@ -28,7 +28,8 @@ enum uriboot_flags { extern void set_autoboot_busloc ( unsigned int bus_type, unsigned int location ); -extern void set_autoboot_ll_addr ( const void *ll_addr, size_t len ); +extern void set_autoboot_ll_addr ( const void *ll_addr, size_t len, + unsigned int vlan ); extern int uriboot ( struct uri *filename, struct uri **root_paths, unsigned int root_path_count, int drive, |