lkml.org 
[lkml]   [2000]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: TCP SYNs broken in 2.3.41
   From: willy@thepuffingroup.com
Date: Sun, 30 Jan 2000 23:04:27 -0500

I thought we had {get,put}_unaligned() macros so that people could
write handlers for these protocols? Not that I think support for
weird protocols is a high-priority matter for machines which are
limited to 16MB of RAM.

No, those macros are not for this purpose.

It is, and always has been, the case that in order to support
networking fully you have to handle unaligned accesses. Putting
the macros in for every packet header access would be attrocious,
as would guarenteeing the alignment everywhere.

IP in general will align everything. However, when you guarentee
an alignment on the receive side, the network drivers have to decide
what they align for. So if they align for IP, other protocols
with different header layouts past the hardware header may not be
aligned, and vice versa.

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.159 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site