[Cc'ing davem]
On Thu, Aug 19, 2004 at 04:21:19PM +0900, Yasuyuki Kozakai wrote:
> According to a message in "netdev" mailing list, skb_header_pointer() will be
> introduced in mainline kernel. (see attached message)
yes, David Miller did so.
If I remember correctly, his reasoning for skb_header_pointer() was that
even though we are not guaranteed a completely linear transport layer
header, it doesn't really happen at any point in the network stack at
this time.
I personally still like Yasuyuki's implementation[1] better, especially as
long as I'm not convinced that even in the event of IPv6 extension
headers, tunnels, ipsec, whaetever we're can still assume that
everything up to (and including) tcp option headers is linear.
And I still owe Dave some profiles on whether skb_header_pointer() as
opoosed to skb_copy_bits() actually still shows up in the profiles or not.
I'll do this _right now_ before some customer starts to annoy me again
with some stupid problem ;)
> If I remember correctly, this approach was rejected in the result of our
> discussions. And I sent a patch to this mailing list at 2004/08/08.
Yes, I thought your approach is better ;) But maybe I'm just
overgeneralizing or trying to be too perfect. Anyway, in the end it's
Dave's call.
[1]
http://lists.netfilter.org/pipermail/netfilter-devel/2004-August/016277.html
--
- Harald Welte <laforge@xxxxxxxxxxxxx> http://www.netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
signature.asc
Description: Digital signature
|