lkml.org 
[lkml]   [1997]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Q] More about my trauma with netdevice ...

Ok,

I'm GREATLY simplied my _xmit routine for my loadable virtual netdevice.
It's a simple:

{
ip_forward(skb,dev,NOTTLDEC,dev->pa_dstaddr);
dev_kfree_skb(skb,FREE_WRITE);
return 0;
}

Or thereabouts. No error checking or anything. I just want it not to OOPS
when I ping a device.

Well, at this point I think I'm beginning to realize that I must make
changes the the skb sk_buff that my _xmit function is passed.

Is this correct? Do I need to make mods to skb? If not, then why won't the
above work?

I'm using the POINTOPOINT element to hold an address (almost like a
gateway), can I do this? Or does the kernel react to dev->pa_dstaddr in an
internal way that I'm missing?

Help!


------------------------------------------------------------------------------
Nicholas J. Leon <nicholas@binary9.net>
"Elegance through Simplicity" http://mrnick.binary9.net/
PGP:finger nicholas@neko.binary9.net Shinanyaku:[Chronx/War2/XvT]
------------------------------------------------------------------------------
Fear can hurt where pain cannot.

--
Please ignore the following addresses, they are intended to determine and
catch bulk emailers that scan newsgroups and mailing lists.

>> linux-kernel_vger.rutgers.edu@catcher.binary9.net


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