summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2007-01-09 22:01:55 +0100
committerMichael Brown2007-01-09 22:01:55 +0100
commite822bc2a90016f206b051cce1287a655e66b6b9b (patch)
tree254fdf56c0a92e4fff9de6a7f6c0dc77fdf5bdf9 /src/include/usr
parentRename pkb_available() to pkb_tailroom() for consistency with Linux's (diff)
downloadipxe-e822bc2a90016f206b051cce1287a655e66b6b9b.tar.gz
ipxe-e822bc2a90016f206b051cce1287a655e66b6b9b.tar.xz
ipxe-e822bc2a90016f206b051cce1287a655e66b6b9b.zip
Autopadding was sometimes overwriting the struct list_head at the end
of the packet buffer. Although pkbuffs are guaranteed to be at least PKB_ZLEN bytes long, there's no guarantee that the data starts at the start of the packet buffer. Since we have to align data for rtl8139 anyway, and since the start of the packet buffer is guaranteed to be aligned to PKB_ALIGN, we may as well just shuffle the packet down so that it starts at the start of the packet buffer. This simultaneously aligns the packet and ensures that there is enough room for the zero-padding.
Diffstat (limited to 'src/include/usr')
0 files changed, 0 insertions, 0 deletions