Re: Packet tapping

Francis Galiegue (
Wed, 12 Sep 2001 05:43:15 -0400 (EDT)

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, - 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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at