]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tcp] Allow sufficient headroom for TCP headers
authorMichael Brown <mcb30@ipxe.org>
Mon, 19 Sep 2011 14:48:57 +0000 (15:48 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 19 Sep 2011 14:52:54 +0000 (15:52 +0100)
commit469bd11f392797027b68e9d22f8f59a547886515
tree9a8de4cf54eae0e2cc1d85d4561a6c9121e004e8
parent1691cf50bc1d825cb9dac52e53b5280481fa0acf
[tcp] Allow sufficient headroom for TCP headers

TCP currently neglects to allow sufficient space for its own headers
when allocating I/O buffers.  This problem is masked by the fact that
the maximum link-layer header size (802.11) is substantially larger
than the common Ethernet link-layer header.

Fix by allowing sufficient space for any TCP headers, as well as the
network-layer and link-layer headers.

Reported-by: Scott K Logan <logans@cottsay.net>
Debugged-by: Scott K Logan <logans@cottsay.net>
Tested-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/tcp.h
src/net/tcp.c