mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: ak@suse.de (Andi Kleen)
Cc: ak@suse.de, joris@deadlock.et.tudelft.nl, linux-kernel@vger.kernel.org
Subject: Re: Bind to protocol with AF_PACKET doesn't work for outgoing packets
Date: Thu, 1 Nov 2001 21:56:34 +0300 (MSK)	[thread overview]
Message-ID: <200111011856.VAA27068@ms2.inr.ac.ru> (raw)
In-Reply-To: <20011101192153.A30903@wotan.suse.de> from "Andi Kleen" at Nov 1, 1 07:21:53 pm

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?

If it was an optimization I would understand this of course.
But you propose deoptimization. :-)


> Do you worry about the handling of hundreds of packet sockets? 

I worry about _one_ packet socket, which implements a protocol
in user space. And only about this. It is what packet sockets
are used for.

And I do want to see any refs to it in irrelevant place, which output path is.

To summarize: I wanted to see a patch allowing to detect that
nobody listens on outpu (or even splitting input and output ptype_all.)
So that it becomes possible to use ETH_P_ALL to listen
for all frames, but not to abuse output path.

Opposite is just non-sense with no applications.

Alexey

  reply	other threads:[~2001-11-01 18:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.21.0111010944050.16656-100000@deadlock.et.tudelft.nl.suse.lists.linux.kernel>
2001-11-01 14:30 ` Andi Kleen
2001-11-01 15:18   ` Joris van Rantwijk
2001-11-01 16:46     ` Andi Kleen
2001-11-01 17:33   ` kuznet
2001-11-01 17:45     ` Andi Kleen
2001-11-01 18:09       ` kuznet
2001-11-01 18:21         ` Andi Kleen
2001-11-01 18:56           ` kuznet [this message]
2001-11-01 19:28             ` Andi Kleen
2001-11-01 19:48               ` kuznet
2001-11-01  9:11 Joris van Rantwijk
2001-11-02  2:26 ` Edgar Toernig

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=200111011856.VAA27068@ms2.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=ak@suse.de \
    --cc=joris@deadlock.et.tudelft.nl \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®