Re: question concerning skb_headroom in fragments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 28, 2000 at 11:53:08AM +0200, Richard Jones wrote:
> I've written a module that steals packets at the net_bh (via proto
> handler) and hard_start_xmit points.  I massage this data before
> injecting it back into the network.  At the moment I'm testing this
> with ping.  All works fine until packet sizes reach the MTU (1500, I'm
> on ethernet).  At this point it appears that the fragmented echo reply
> packets are only getting a skb_headroom of 2 , where previously this
> was 16 when unfragmented, the echo reply fragments also appear to have
> grown larger than MTU (1514).  I realise there are other mechanisms of
> achieving what I'm after, however they are both too high up the stack
> and lack efficient kernel<->userland transfers.  Anyways I've been
> chasing this for a few days and wondered if anyone had some hints
> about what might be going wrong or at least where to look.

	Sounds like 14 octets of Ethernet header to me.
-- 
tv@{{hq.yok.utu,havoc,gaeshido}.fi,{debian,wanderer}.org,stonesoft.com}
unix, linux, debian, networks, security, | Three things are certain:
kernel, TCP/IP, C, perl, free software,  | Death, taxes, and lost data.
mail, www, sw devel, unix admin, hacks.  | Guess which has occurred.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux