linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Packet tapping
@ 2001-09-12  9:32 Manoj Sontakke
  2001-09-12  9:43 ` Francis Galiegue
  0 siblings, 1 reply; 3+ messages in thread
From: Manoj Sontakke @ 2001-09-12  9:32 UTC (permalink / raw)
  To: LKML

Hi,
	Is it possible to tap a packet and send it to a userlevel program
before it is sent to appropriate receive function (say ip_rcv()). The
user level program will give the packet back to the kernel for delivery
to appropriate receive function.
	In short, is it possible to have a protocol stack (between layer 2 and
3) to be implemented in useland.

	Is Tun/Tap driver useful here?

Thanks for all the help
Manoj

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Packet tapping
  2001-09-12  9:32 Packet tapping Manoj Sontakke
@ 2001-09-12  9:43 ` Francis Galiegue
  2001-09-13  5:35   ` Manoj Sontakke
  0 siblings, 1 reply; 3+ messages in thread
From: Francis Galiegue @ 2001-09-12  9:43 UTC (permalink / raw)
  To: Manoj Sontakke; +Cc: LKML

On Wed, 12 Sep 2001, Manoj Sontakke wrote:

>
> Hi,
> 	Is it possible to tap a packet and send it to a userlevel program
> before it is sent to appropriate receive function (say ip_rcv()). The
> user level program will give the packet back to the kernel for delivery
> to appropriate receive function.
> 	In short, is it possible to have a protocol stack (between layer 2 and
> 3) to be implemented in useland.
>
> 	Is Tun/Tap driver useful here?
>

Isn't the QUEUE driver from iptables done for such cases?

-- 
Francis Galiegue, fg@mandrakesoft.com - Normand et fier de l'être
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race"  -- R. Cook


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Packet tapping
  2001-09-12  9:43 ` Francis Galiegue
@ 2001-09-13  5:35   ` Manoj Sontakke
  0 siblings, 0 replies; 3+ messages in thread
From: Manoj Sontakke @ 2001-09-13  5:35 UTC (permalink / raw)
  To: Francis Galiegue; +Cc: LKML

Thanks a lot. I was looking for a pointer. I knew its possible but lost
track of "how".
Thnaks again.
Manoj

Francis Galiegue wrote:
> 
> On Wed, 12 Sep 2001, Manoj Sontakke wrote:
> 
> >
> > Hi,
> >       Is it possible to tap a packet and send it to a userlevel program
> > before it is sent to appropriate receive function (say ip_rcv()). The
> > user level program will give the packet back to the kernel for delivery
> > to appropriate receive function.
> >       In short, is it possible to have a protocol stack (between layer 2 and
> > 3) to be implemented in useland.
> >
> >       Is Tun/Tap driver useful here?
> 
> Isn't the QUEUE driver from iptables done for such cases?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-13  5:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-12  9:32 Packet tapping Manoj Sontakke
2001-09-12  9:43 ` Francis Galiegue
2001-09-13  5:35   ` Manoj Sontakke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).