lkml.org 
[lkml]   [1999]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPorting trouble...
Hi,

I have a little trouble writing a module under 2.2.x... The relevant
parts is, that it should send a packet (which is created from scratch).
Just send a packet. Well, I've tried around many days, read really many
sources and when I thought, I've found the right way, it ended up in an
oops or the function couldn't be used in a module because it wasn't
exported (It's important that this does not to change anything at the
kernel-source itself).

My main problem is that I don't know how to add the linklevel-headers
hardware-independently...
But lets say I've managed to add the ll-headers...
Then, I put the packet into an skb.
then I calculate the routes with ip_route_output.
then I submit the packet with dev_queue_xmit and do a ip_rt_put.
Do I make a mistake here?

I would be happy if someone could point me to a module which does sth
like this, I haven't found anything yet... I'd _really_ like to see the
source of a module which does sth. similar.


FH

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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