aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorThomas Chou <[email protected]>2009-10-04 23:33:19 +0000
committerDavid S. Miller <[email protected]>2009-10-07 03:50:12 -0700
commit050f91dcd9a45a14449dded5180f633692b588d2 (patch)
tree93b1b4c4bcd43b70a08e68fd1b9ae313a5fd559e /net/lapb/lapb_subr.c
parent3ee19a85bb428b8363699dff9e1c4041c107d46a (diff)
ethoc: align received packet to make IP header at word boundary
The packet buffer is allocated at 4 bytes boundary, but the IP header length and version bits is located at byte 14. These bit fields access as 32 bits word and caused exception on processors that do not support unaligned access. The patch adds 2 bytes offset to make the bit fields word aligned. Signed-off-by: Thomas Chou <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions