From: Florian Westphal <fw@strlen.de>
To: Laura Garcia Liebana <nevola@gmail.com>
Cc: netfilter-devel@vger.kernel.org, pablo@netfilter.org, devel@zevenet.com
Subject: Re: [PATCH nf-next] netfilter: introduce support for reject at prerouting stage
Date: Thu, 28 May 2020 19:24:34 +0200 [thread overview]
Message-ID: <20200528172434.GL2915@breakpoint.cc> (raw)
In-Reply-To: <20200528171438.GA27622@nevthink>
Laura Garcia Liebana <nevola@gmail.com> wrote:
> +static void nf_reject_fill_skb_dst(struct sk_buff *skb_in)
> +{
> + struct dst_entry *dst = NULL;
> + struct flowi fl;
> + struct flowi4 *fl4 = &fl.u.ip4;
> +
> + memset(fl4, 0, sizeof(*fl4));
> + fl4->daddr = ip_hdr(skb_in)->saddr;
> + nf_route(dev_net(skb_in->dev), &dst, &fl, false, AF_INET);
Hmm, won't that need error handling for the case where we can't find
a route?
next prev parent reply other threads:[~2020-05-28 17:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 17:14 [PATCH nf-next] netfilter: introduce support for reject at prerouting stage Laura Garcia Liebana
2020-05-28 17:24 ` Florian Westphal [this message]
2020-05-29 8:38 ` Laura García Liébana
2020-05-29 8:47 ` Reindl Harald
2020-05-29 9:46 ` Laura García Liébana
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=20200528172434.GL2915@breakpoint.cc \
--to=fw@strlen.de \
--cc=devel@zevenet.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=nevola@gmail.com \
--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 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.