diff options
Diffstat (limited to 'sys/arch/amd64/stand/libsa/pxe.c')
-rw-r--r-- | sys/arch/amd64/stand/libsa/pxe.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/libsa/pxe.c b/sys/arch/amd64/stand/libsa/pxe.c index c11b3a00086..58de9a8d305 100644 --- a/sys/arch/amd64/stand/libsa/pxe.c +++ b/sys/arch/amd64/stand/libsa/pxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxe.c,v 1.3 2005/03/13 22:31:49 tom Exp $ */ +/* $OpenBSD: pxe.c,v 1.4 2006/05/20 22:37:43 deraadt Exp $ */ /* $NetBSD: pxe.c,v 1.5 2003/03/11 18:29:00 drochner Exp $ */ /* @@ -97,6 +97,9 @@ #include <lib/libsa/net.h> #include <lib/libsa/bootp.h> +#include <stand/boot/bootarg.h> +#include <machine/biosvar.h> + #include "pxeboot.h" #include "pxe.h" #include "pxe_netif.h" @@ -221,12 +224,13 @@ pxe_netif_open() pxe_call(PXENV_UDP_OPEN); if (uo->status != PXENV_STATUS_SUCCESS) { - printf("pxe_netif_open: PXENV_UDP_OPEN failed: 0x%x\n", + printf("\npxe_netif_open: PXENV_UDP_OPEN failed: 0x%x\n", uo->status); return -1; } bcopy(bootplayer.CAddr, desc.myea, ETHER_ADDR_LEN); + addbootarg(BOOTARG_BOOTMAC, sizeof(bios_bootmac_t), bootplayer.CAddr); /* * Since the PXE BIOS has already done DHCP, make sure we |