From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Anders K. Pedersen | Cohaesio" <akp@cohaesio.com>,
"netfilter-devel@vger.kernel.org"
<netfilter-devel@vger.kernel.org>
Cc: Liping Zhang <zlpnobody@gmail.com>
Subject: Re: [PATCH v2 nf-next 5/5] netfilter: nft: rt nexthop for inet family
Date: Thu, 27 Oct 2016 19:50:27 +0200 [thread overview]
Message-ID: <20161027175027.GA20553@salvia> (raw)
In-Reply-To: <CAML_gOeoT43PGgk02peStbpecitefrRO_tXA1TXJXc3k09yaYA@mail.gmail.com>
On Sun, Oct 23, 2016 at 01:01:51PM +0800, Liping Zhang wrote:
> Hi Anders,
>
> 2016-10-23 0:08 GMT+08:00 Anders K. Pedersen | Cohaesio <akp@cohaesio.com>:
> [...]
> > But ct_expr_update_type is only used during the netlink_delinearize
> > postprocess step, and that causes problems, when it is used in
> > combination with flow statements as described in other mail.
>
> I think this is a bug and should be fixed.
>
> > Would you object to dropping (i.e. kernel will not require it and
> > userspace will not include it) the NFTA_RT_FAMILY attribute for ip and
> > ip6 families, but unconditionally including it for the inet family?
>
> After I read your and Pablo's explanation, now I'm not sure which one
> is better. :)
>
> Maybe from this rt nexthop expression, we can get a relatively
> consistent way to handle the INET family properly, either
> explicitly add a _FAMILY_ attribute, or just like ct original saddr,
> completely handle it properly in the nft utility.
Please, use the layer 3 network context as you said. For the inet family,
we would need to bail out in case no context is available.
We can probably get rid of the _FAMILY attribute by introducing
explicit rt keys, ie.
NFTA_RT_NH_IPV4
NFTA_RT_NH_IPV6
I agree the _FAMILY attribute is getting ugly, specifically we don't
need this attribute with classid, so better if we can avoid it.
Thanks!
prev parent reply other threads:[~2016-10-27 17:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 18:34 [PATCH v2 nf-next 0/5] netfilter: nft: introduce routing expression Anders K. Pedersen | Cohaesio
2016-10-19 18:35 ` [PATCH v2 nf-next 1/5] netfilter: nft: UAPI headers for " Anders K. Pedersen | Cohaesio
2016-10-19 18:38 ` [PATCH v2 nf-next 2/5] netfilter: nft: basic " Anders K. Pedersen | Cohaesio
2016-10-19 18:39 ` [PATCH v2 nf-next 3/5] netfilter: nft: rt nexthop for IPv4 family Anders K. Pedersen | Cohaesio
2016-10-19 18:40 ` [PATCH v2 nf-next 4/5] netfilter: nft: rt nexthop for IPv6 family Anders K. Pedersen | Cohaesio
2016-10-19 18:41 ` [PATCH v2 nf-next 5/5] netfilter: nft: rt nexthop for inet family Anders K. Pedersen | Cohaesio
2016-10-20 9:13 ` Liping Zhang
2016-10-20 12:36 ` Anders K. Pedersen | Cohaesio
2016-10-20 13:27 ` Liping Zhang
2016-10-20 13:52 ` Anders K. Pedersen | Cohaesio
2016-10-21 2:06 ` Liping Zhang
2016-10-21 4:16 ` Anders K. Pedersen | Cohaesio
2016-10-21 6:17 ` Liping Zhang
2016-10-21 8:26 ` Anders K. Pedersen | Cohaesio
2016-10-21 12:42 ` Liping Zhang
2016-10-22 15:25 ` Anders K. Pedersen | Cohaesio
2016-10-21 9:21 ` Pablo Neira Ayuso
2016-10-21 13:22 ` Liping Zhang
2016-10-21 16:58 ` Pablo Neira Ayuso
2016-10-22 1:44 ` Liping Zhang
2016-10-22 16:08 ` Anders K. Pedersen | Cohaesio
2016-10-23 5:01 ` Liping Zhang
2016-10-27 17:50 ` Pablo Neira Ayuso [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=20161027175027.GA20553@salvia \
--to=pablo@netfilter.org \
--cc=akp@cohaesio.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=zlpnobody@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 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.