netdev
[Top] [All Lists]

tun device - bug or feature? WAS(Re: IMQ / new Dummy device post.

To: netdev@xxxxxxxxxxx
Subject: tun device - bug or feature? WAS(Re: IMQ / new Dummy device post.
From: jamal <hadi@xxxxxxxxxx>
Date: 24 Apr 2004 10:14:43 -0400
Cc: syrius.ml@xxxxxxxxxx, Maxim Krasnyansky <maxk@xxxxxxxxxxxx>, Jeff Garzik <jgarzik@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>
In-reply-to: <1082719745.1057.27.camel@xxxxxxxxxxxxxxxx>
Organization: jamalopolis
References: <wazza.87ad18jbdl.fsf@xxxxxxxxxx> <1082427350.1034.70.camel@xxxxxxxxxxxxxxxx> <wazza.87fzayw1fy.fsf@xxxxxxxxxx> <wazza.87fzaxmr6x.fsf@xxxxxxxxxx> <wazza.87hdvddqxq.fsf@xxxxxxxxxx> <1082639764.1059.81.camel@xxxxxxxxxxxxxxxx> <87oepjx65r.87n053x65r@xxxxxxxxxxxxxxxxxxxxx> <1082719745.1057.27.camel@xxxxxxxxxxxxxxxx>
Reply-to: hadi@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Maxim,

When TUN_TUN_DEV is used, before the packet is injected into
the netif_rx() only skb->mac.raw = skb->data is set; the other headers
are not adjusted. Typically netdevs would do a
skb_pull(skb,dev->hard_header_len) to make the adjustment.
I have a feeling this is design intent thats why i didnt send you a
patch. 
Jeff, Dave: Would it be fair to say when packets get injected into the
stack by a netdev via netif_rx(), the skb headers are expected to be
ponting into some specific places? I am not sure if theres a hard
fastened rule defined anywhere.

cheers,
jamal

On Fri, 2004-04-23 at 07:29, jamal wrote:
> Hi there,
> 
> On Thu, 2004-04-22 at 13:43, syrius.ml@xxxxxxxxxx wrote:
> > Hi,
> > 
> > It oops when using the ingress qdisc + action mirred egress redirect
> > filter on tun0. (no egress at all, no ingress on eth0)
> > It doesn't oops using an ingress qdisc + a simple police+drop filter
> > on tun0...
> 
> Ok, so you have narrowed it down to mirred, tun and ingress qdisc - is
> that correct? Were you using openvpn to recreate this?
> BTW, would this happen if you dont issue the ping -f initially in above
> setup? If yes, before you send create the problem can you send a few
> pings through tap device and send me output of dmesg?
> 
> I just did a simple test with a basic program and couldnt reproduce it.
> I dont have the proper setup, can you do a basic test with some other
> tunneling s/ware? 
> The doc for tun mentions: 
> http://vtun.sourceforge.net and http://perso.enst.fr/~beyssac/pipsec/
> Please compile in tun and dummy into the kernel.
> 
> BTW, i think we should take this offline; send your response directly to
> me. Anyone else interested in this conversation email both of us and we
> will cc you.
> 
> cheers,
> jamal
> 
> 
> 
> 


<Prev in Thread] Current Thread [Next in Thread>