From: David Ahern <dsahern@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next] net: Only honor ifindex in IP_PKTINFO if non-0
Date: Tue, 6 Mar 2018 13:52:05 -0700 [thread overview]
Message-ID: <7bfc59d2-ea74-0962-67a5-9c5adc8b9e8f@gmail.com> (raw)
In-Reply-To: <20180216190303.30769-1-dsahern@gmail.com>
On 2/16/18 12:03 PM, David Ahern wrote:
> Only allow ifindex from IP_PKTINFO to override SO_BINDTODEVICE settings
> if the index is actually set in the message.
>
> Signed-off-by: David Ahern <dsahern@gmail.com>
> ---
> net/ipv4/ip_sockglue.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
Dave: Any chance this can get backported to 4.14 and 4.9 stable
releases? Right now, net-snmp is dead in the water with VRF because it
uses IP_PKTINFO to set the source address AND in the process sets the
ifindex to 0 to allow asymmetric routing (request received on one
interface and response goes out a different one). This patch allows 'ip
vrf exec mgmt snmpd' to work.
next prev parent reply other threads:[~2018-03-06 20:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-16 19:03 [PATCH net-next] net: Only honor ifindex in IP_PKTINFO if non-0 David Ahern
2018-02-16 21:43 ` David Miller
2018-02-16 22:12 ` David Ahern
2018-03-06 20:52 ` David Ahern [this message]
2018-03-06 21:41 ` 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=7bfc59d2-ea74-0962-67a5-9c5adc8b9e8f@gmail.com \
--to=dsahern@gmail.com \
--cc=davem@davemloft.net \
--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 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).