]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[undi] Allow underlying PXE stack to construct link-layer header
authorMichael Brown <mcb30@ipxe.org>
Fri, 2 Mar 2012 18:02:03 +0000 (18:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 2 Mar 2012 18:02:03 +0000 (18:02 +0000)
commit6324bd9389521c7e86384591f41eb78a81e9af47
tree2047727059c7c2daf309bc00002571c3a20de1e9
parent1d293776ea290ae1f4d1228f3278030facf97a4b
[undi] Allow underlying PXE stack to construct link-layer header

Some PXE stacks (observed with a QLogic 8242) will always try to
prepend a link-layer header, even if the caller uses P_UNKNOWN to
indicate that the link-layer header has already been filled in.  This
results in an invalid packet being transmitted.

Work around these faulty PXE stacks where possible by stripping the
existing link-layer header and allowing the PXE stack to (re)construct
the link-layer header itself.

Originally-fixed-by: Buck Huppmann <buckh@pobox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/drivers/net/undinet.c
src/include/ipxe/ethernet.h
src/net/ethernet.c