Messages in this thread | | | Date | Fri, 12 Sep 1997 10:47:50 -0400 (EDT) | From | "Nicholas J. Leon" <> | 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
| |