lkml.org 
[lkml]   [2003]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: How to send an IP packet from the kernel
From
Date
On Mon, 2003-12-15 at 07:38, Dmytro Bablinyuk wrote:
> >>I have a dstaddr, srcaddr and the actual data(payload). I need to load
> >>IP packet with data(payload) and send the packet out to the net through
> >>eth0 .
> >>How do I do this from the kernel?
> >>
> >>
> >
> > Why not do it from userspace, with lots of available tools (
> >http://www.stearns.org/doc/pcap-apps.html ,
> >http://www.stearns.org/netreply )?
> >
> >
> For reasons that the driver will do extra stuff on this data and this
> data not always will be/must be available to a user space app.
> Some data will be available only inside of the driver. No other
> processing out of the driver for that data is allowed.


You trying to back door a driver or something? You might look at AFS
kernel modules. http://www.openafs.org. They do many things in the
kernel, and i think that some IP communications is one of them. [But
don't quote me]

js


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

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