netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: David S Miller <davem@redhat.com>
Cc: Petr Vandrovec <VANDROVE@vc.cvut.cz>, netdev@oss.sgi.com
Subject: Re: [PATCH?] Fix sniffing of ARP replies
Date: Thu, 16 Oct 2003 15:41:00 -0700	[thread overview]
Message-ID: <1066344060.2232.9.camel@localhost.localdomain> (raw)
In-Reply-To: <20031016152136.50e2a389.davem@redhat.com>

On Thu, 2003-10-16 at 15:21, David S. Miller wrote:
> On Thu, 16 Oct 2003 12:07:23 +0200
> "Petr Vandrovec" <VANDROVE@vc.cvut.cz> wrote:
> 
> > It behaves same way it behaved. But recently you renamed packet_type.data
> > to packet_type.af_packet_priv, saying that af_packet_priv should be used
> > only by AF_PACKET code, by nobody else. So I trusted you, removed
> > packet_type.data (and packet_type.af_packet_priv) references from the
> > code - and things stopped working, as with af_packet_priv==NULL ARP
> > replies are not delivered to the registered packet_type callback, as
> > these packets match skb->sk == pt->af_packet_priv for af_packet_priv == NULL.
> 
> vmware was trying to influence the behavior of input packet
> delivery by setting ->data in a way which was never defined.
> That facility existed and continues to exist for the sake
> of AF_PACKET solely, what vmware was doing just happened to work.

vmware wasn't just trying to influence, it used the implementation.

So tell me, where was this definition again?

If it was just how the code functioned, you have no basis for that
argument.  If you have commentary, design docs or even externally
published discussions, that's a different story.  I diddn't find any.

Code is code, readable or intentionally obscured.
Function is function.

Peter's code worked before, it stopped working
after the packet.h/PKT_CAN_SHARE_SKB removal.

You can change the implementation, but your argument is made hollow
by not having any docs.

  reply	other threads:[~2003-10-16 22:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16 10:07 [PATCH?] Fix sniffing of ARP replies Petr Vandrovec
2003-10-16 22:21 ` David S. Miller
2003-10-16 22:41   ` Joe Perches [this message]
2003-10-16 22:45     ` David S. Miller
2003-10-16 23:48       ` Petr Vandrovec
2003-10-17  6:55         ` David S. Miller
  -- strict thread matches above, loose matches on Subject: below --
2003-10-15 17:11 Petr Vandrovec
2003-10-16  3:47 ` David S. Miller
2003-10-17  7:10 ` David S. Miller

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=1066344060.2232.9.camel@localhost.localdomain \
    --to=joe@perches.com \
    --cc=VANDROVE@vc.cvut.cz \
    --cc=davem@redhat.com \
    --cc=netdev@oss.sgi.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 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).