From: David Ahern <dsahern@kernel.org>
To: Martin Willi <martin@strongswan.org>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH nf] netfilter: Update ip6_route_me_harder to consider L3 domain
Date: Tue, 12 Apr 2022 08:19:37 -0600 [thread overview]
Message-ID: <a64e1342-c953-40c5-2afb-0e9654e7d002@kernel.org> (raw)
In-Reply-To: <20220412074639.1963131-1-martin@strongswan.org>
On 4/12/22 1:46 AM, Martin Willi wrote:
> @@ -39,6 +38,13 @@ int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff
> };
> int err;
>
> + if (sk && sk->sk_bound_dev_if)
> + fl6.flowi6_oif = sk->sk_bound_dev_if;
> + else if (strict)
> + fl6.flowi6_oif = dev->ifindex;
> + else
> + fl6.flowi6_oif = l3mdev_master_ifindex(dev);
For top of tree, this is now fl6.flowi6_l3mdev and dev is only needed
here so make this:
fl6.flowi6_l3mdev = l3mdev_master_ifindex(skb_dst(skb)->dev);
> +
> fib6_rules_early_flow_dissect(net, skb, &fl6, &flkeys);
> dst = ip6_route_output(net, sk, &fl6);
> err = dst->error;
next prev parent reply other threads:[~2022-04-12 14:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 7:46 [PATCH nf] netfilter: Update ip6_route_me_harder to consider L3 domain Martin Willi
2022-04-12 14:19 ` David Ahern [this message]
2022-04-13 9:05 ` Martin Willi
2022-04-13 15:37 ` David Ahern
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=a64e1342-c953-40c5-2afb-0e9654e7d002@kernel.org \
--to=dsahern@kernel.org \
--cc=fw@strlen.de \
--cc=martin@strongswan.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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).