freebsd-dev/sys/boot/i386/libi386
Toomas Soome da8fb057e5 loader: network read rework
The current read from network is working from up to down - we have some
protocol needing the data from the network, so we build the buffer space
for that protocol, add the extra space for headers and pass this buffer
down to be filled by nif get call in hope, we have guessed the incoming
packet size right. Amazingly enough this approach mostly does work, but
not always...

So, this update does work from down to up - we allocate buffer (based
on MTU or frame size info), fill it up, and pass on for upper layers.
The obvious problem is that when we should free the buffer - if at all.

In the current implementation the upper layer will free the packet on error
or when the packet is no longer needed.

While working on the issue, the additional issue did pop up - the bios
implementation does not have generic get/put interface but is using pxe
udpsend/udpreceive instead. So the udp calls are gone and undi interface
is implemented instead. Which in turn means slight other changes as we
do not need to have duplicated pxe implementation and can just use dev_net.

To align packet content, the actual read from nic is using shifted buffer by
ETHER_ALIGN (2).

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D10232
2017-05-06 20:32:27 +00:00
..
amd64_tramp.S sys/boot: spelling fixes in comments. 2016-04-30 00:26:38 +00:00
biosacpi.c Deprecate using hints.acpi.0.rsdp to communicate the RSDP to the 2016-04-14 04:59:51 +00:00
bioscd.c loader: F_READ/F_WRITE should be checked against masked flag 2017-04-18 18:07:54 +00:00
biosdisk.c loader: F_READ/F_WRITE should be checked against masked flag 2017-04-18 18:07:54 +00:00
biosmem.c In r298230 the value of HEAP_MIN was changed from 3MB to 64MB. Correct a 2017-04-07 15:41:49 +00:00
biospci.c Really make WITHOUT_FORTH (MK_FORTH==no) work. The recent inclusion of 2016-10-25 17:31:57 +00:00
biospnp.c
biossmap.c
bootinfo32.c Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
bootinfo64.c Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
bootinfo.c howto_names: unify declaration 2014-03-11 10:13:06 +00:00
comconsole.c Add support for serial and null console to UEFI boot loader. 2014-09-12 17:32:28 +00:00
devicename.c
elf32_freebsd.c
elf64_freebsd.c loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
i386_copy.c
i386_module.c
libi386.h Create a new linker set, Xficl_compile_set which contains a list of 2016-10-14 16:23:12 +00:00
Makefile Create a new linker set, Xficl_compile_set which contains a list of 2016-10-14 16:23:12 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2016-03-21 18:02:26 +00:00
multiboot_tramp.S loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
multiboot.c loader/multiboot: fix multiboot loading 2017-04-13 09:59:12 +00:00
multiboot.h loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
nullconsole.c
pread.c
pxe.c loader: network read rework 2017-05-06 20:32:27 +00:00
pxe.h loader: network read rework 2017-05-06 20:32:27 +00:00
pxetramp.s
smbios.c loader: smbios version check is not correct 2016-11-19 16:08:40 +00:00
smbios.h SMBIOS support for EFI. 2015-04-06 06:55:47 +00:00
spinconsole.c Make this compile when TERM_EMU is not defined. 2014-12-22 19:10:11 +00:00
time.c loader: move bios getsecs into time.c 2017-03-28 21:47:12 +00:00
vidconsole.c