From: David Miller <davem@davemloft.net>
To: subramanian.vijay@gmail.com
Cc: netdev@vger.kernel.org, shemminger@vyatta.com,
eric.dumazet@gmail.com, alexander.h.duyck@intel.com
Subject: Re: [PATCH net-next] udp: Add socket early demux support
Date: Tue, 26 Jun 2012 14:34:01 -0700 (PDT) [thread overview]
Message-ID: <20120626.143401.445148198931339546.davem@davemloft.net> (raw)
In-Reply-To: <1340739826-3363-1-git-send-email-subramanian.vijay@gmail.com>
You can't do this.
If the UDP socket has wildcards, that means the source address of the
route will not be validated. This means we will start accepting
spoofed packets. It also means the route you are caching is going
to be the wrong route since the keys are variable.
You can only do an early demux where all the keys are fully specified
and there are no wildcards. That why for TCP we only early demux for
established sockets.
next prev parent reply other threads:[~2012-06-26 21:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 19:43 [PATCH net-next] udp: Add socket early demux support Vijay Subramanian
2012-06-26 20:49 ` Eric Dumazet
2012-06-26 21:34 ` David Miller [this message]
2012-06-27 0:06 ` Vijay Subramanian
2012-06-27 2:29 ` Changli Gao
2012-06-27 3:59 ` David 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=20120626.143401.445148198931339546.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexander.h.duyck@intel.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
--cc=subramanian.vijay@gmail.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).