Home | History | Annotate | Download | only in efiboot
History log of /src/sys/arch/i386/stand/efiboot/efipxe.c
RevisionDateAuthorComments
 1.2  24-Jul-2023  rin MI and x86 efiboot: Fix device path type for PXE boot device.

It should be Messaging, not Media Device Path. Taken from OpenBSD, for
which this code was originally written:

https://cvsweb.openbsd.org/src/sys/arch/amd64/stand/efiboot/efipxe.c#rev1.6

> Network-based device paths use Messaging and not Media types. Thus
> in reality the depth was always -1 which made the compare function
> a No-Op. Properly check the device path depth value and look for
> the Messaging type instead to find the correct NIC. This check
> never worked before and was uncovered by the last change.
>
> Regression noticed by bluhm@
 1.1  11-Apr-2018  nonaka branches: 1.1.2; 1.1.4; 1.1.36;
efiboot: Added network boot support.
 1.1.36.1  11-Sep-2023  martin Pull up following revision(s) (requested by rin in ticket #362):

sys/arch/i386/stand/efiboot/efipxe.c: revision 1.2
sys/stand/efiboot/efipxe.c: revision 1.3

MI and x86 efiboot: Fix device path type for PXE boot device.
It should be Messaging, not Media Device Path. Taken from OpenBSD, for
which this code was originally written:
https://cvsweb.openbsd.org/src/sys/arch/amd64/stand/efiboot/efipxe.c#rev1.6

Network-based device paths use Messaging and not Media types. Thus
in reality the depth was always -1 which made the compare function
a No-Op. Properly check the device path depth value and look for
the Messaging type instead to find the correct NIC. This check
never worked before and was uncovered by the last change.

Regression noticed by bluhm@
 1.1.4.2  16-Apr-2018  pgoyette Sync with HEAD, resolve some conflicts
 1.1.4.1  11-Apr-2018  pgoyette file efipxe.c was added on branch pgoyette-compat on 2018-04-16 01:59:54 +0000
 1.1.2.2  11-Apr-2018  martin Pull up following revision(s) (requested by nonaka in ticket #739):

sys/arch/i386/stand/efiboot/efinet.h: revision 1.1
sys/arch/i386/stand/efiboot/efinet.c: revision 1.1
sys/arch/i386/stand/efiboot/conf.c: revision 1.2
sys/arch/i386/stand/efiboot/devopen.c: revision 1.5
sys/arch/i386/stand/efiboot/efidisk.c: revision 1.6
sys/arch/i386/stand/efiboot/devopen.h: revision 1.3
sys/arch/i386/stand/efiboot/efipxe.c: revision 1.1
sys/arch/i386/stand/efiboot/efiboot.c: revision 1.7
sys/arch/i386/stand/efiboot/boot.c: revision 1.10
sys/arch/i386/stand/efiboot/efiboot.h: revision 1.8
sys/arch/i386/stand/efiboot/Makefile.efiboot: revision 1.12
sys/arch/i386/stand/efiboot/dev_net.c: revision 1.1

efiboot: Added network boot support.
 1.1.2.1  11-Apr-2018  martin file efipxe.c was added on branch netbsd-8 on 2018-04-11 14:51:43 +0000

RSS XML Feed