mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Michael Brown
e822bc2a90
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.
Description
xCAT Network Boot Agent
Languages
C
94.5%
Objective-C
2.1%
Assembly
1.3%
Perl
0.9%
Makefile
0.4%
Other
0.7%