Re: Bind to protocol with AF_PACKET doesn't work for outgoing packets

From: Andi Kleen (ak@suse.de)
Date: Thu Nov 01 2001 - 14:28:45 EST


On Thu, Nov 01, 2001 at 09:56:34PM +0300, A.N.Kuznetsov wrote:
> Hello!
>
> > When you e.g. have a TCP sniffer it makes sense to only bind it to ETH_P_IP.
>
> For what purpose? To add a small underdeveloped copy of BPF?

Just to have an symmetric API. Everything else is too ugly to explain
in manpages ;)

> To summarize: I wanted to see a patch allowing to detect that
> nobody listens on outpu (or even splitting input and output ptype_all.)

That would require changing/breaking PF_PACKET, no?

-Andi
-
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/



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:16 EST