All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cann <shum@canndrew.org>
To: netdev@vger.kernel.org
Subject: Re: UDP packets arriving on wrong sockets
Date: Fri, 3 Aug 2018 11:20:14 -0400	[thread overview]
Message-ID: <20180803152014.GA5188@canndrew.org> (raw)
In-Reply-To: <CAF=yD-Ky7VXy5z26Qji9Mra6dQqsxo-++M6dfkO7myrbU8OJYg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

On Fri, Aug 03, 2018 at 10:20:06AM -0400, Willem de Bruijn wrote:
> On Fri, Aug 3, 2018 at 12:20 AM Andrew Cann <shum@canndrew.org> wrote:
> >
> > On Thu, Aug 02, 2018 at 11:21:41AM -0400, Willem de Bruijn wrote:
> > > You have two sockets bound to the same address and port? Is this using
> > > SO_REUSEPORT?
> >
> > Yes, this is using SO_REUSEPORT.
> 
> Then this is working as intended.
> 
> Without SO_REUSEPORT it would not be possible to bind two sockets to
> the same address and port. See documentation, e.g., at
> https://lwn.net/Articles/542629/

The man page for connect clearly states that a connected UDP socket should only
receive datagrams from the address that it is connected to. This isn't the
behaviour I'm seeing. That's the issue.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2018-08-03 17:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-02  9:05 UDP packets arriving on wrong sockets Andrew Cann
2018-08-02 13:20 ` Eric Dumazet
2018-08-02 13:35   ` Eric Dumazet
2018-08-02 15:21   ` Willem de Bruijn
2018-08-02 15:28     ` Eric Dumazet
2018-08-03  4:19     ` Andrew Cann
2018-08-03 14:20       ` Willem de Bruijn
2018-08-03 15:20         ` Andrew Cann [this message]

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=20180803152014.GA5188@canndrew.org \
    --to=shum@canndrew.org \
    --cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.