From: David Miller <davem@davemloft.net>
To: dsahern@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: Only honor ifindex in IP_PKTINFO if non-0
Date: Tue, 06 Mar 2018 16:41:37 -0500 (EST) [thread overview]
Message-ID: <20180306.164137.1449749449273628774.davem@davemloft.net> (raw)
In-Reply-To: <7bfc59d2-ea74-0962-67a5-9c5adc8b9e8f@gmail.com>
From: David Ahern <dsahern@gmail.com>
Date: Tue, 6 Mar 2018 13:52:05 -0700
> 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.
Ok, I've put this patch into 'net' and will let it soak there, and
also queue it up for a future -stable submission.
Thanks David.
prev parent reply other threads:[~2018-03-06 21:41 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
2018-03-06 21:41 ` David Miller [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=20180306.164137.1449749449273628774.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=dsahern@gmail.com \
--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).