[SLOF] [PATCH] libnet/Makefile: Define DHCPARCH in CFLAGS

Thomas Huth thuth at redhat.com
Fri Jun 23 16:33:51 AEST 2017


On 22.06.2017 21:11, Murilo Opsfelder Araujo wrote:
> Some applications, e.g. https://maas.io/, trust on the dhcp code 93
> option to reply the correct pxelinux.0 file according to client
> architecture.
> 
> Today, dhcp.c is compiled without DHCPARCH, which causes it not to
> send client architecture in the dhcp request, i.e. dhcpd server can
> reply a pxelinux.0 binary that is not intended for client
> architecture.

Funnily, the original commit (37826933b20b0eddb84) that introduced the
code stated in the commit message: "Set the qemu-board DHCPARCH type to
0x0c which is the correct value for slof." - but it did not do that.
Looks like some hunks got lost there.

 Thomas


More information about the SLOF mailing list