All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Schmidlkofer <kernel@pacrimopen.com>
To: Dmytro Bablinyuk <dmytro.bablinyuk@tait.co.nz>
Cc: William Stearns <wstearns@pobox.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: How to send an IP packet from the kernel
Date: Mon, 15 Dec 2003 22:11:27 -0800	[thread overview]
Message-ID: <1071555087.8101.1.camel@menion.home> (raw)
In-Reply-To: <3FDD1EB4.3020305@tait.co.nz>

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



      reply	other threads:[~2003-12-16  6:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-15  2:11 How to send an IP packet from the kernel Dmytro Bablinyuk
2003-12-15  2:31 ` William Stearns
2003-12-15  2:38   ` Dmytro Bablinyuk
2003-12-16  6:11     ` Joshua Schmidlkofer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1071555087.8101.1.camel@menion.home \
    --to=kernel@pacrimopen.com \
    --cc=dmytro.bablinyuk@tait.co.nz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wstearns@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.