From: Florian Westphal <fw@strlen.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Florian Westphal <fw@strlen.de>,
netfilter-devel@vger.kernel.org, kaber@trash.net
Subject: Re: [PATCH nft] tests: validate generated netlink instructions
Date: Wed, 12 Aug 2015 19:46:24 +0200 [thread overview]
Message-ID: <20150812174624.GA31166@breakpoint.cc> (raw)
In-Reply-To: <20150812173453.GA30926@salvia>
Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> I found a problem in your change to validate the netlink instructions
> from the python infrastructure that we have for nft.
>
> The set elements are not always displayed in the same order depending
> on the hash seed, so we get bogus warnings in that case.
Did that change recently?
I run the tests quite extensively at the moment and I did not see
failures in the set parts yet.
> I think the fix for the test infrastructure will require something a
> bit more complicated that a simple string comparison as we'll need to
> interpret the set element part.
>
> Probably it would be good to wrap the netlink instruction generation
> code under some option until this is resolved, instead of having it
> enabled by default.
>
> Let me know if you come up with any better idea. Thanks!
I'm currently in the process of finalizing a first draft of vlan
matching, i think i have patches ready next week.
This will also make "nft add rule bridge filter input ip version 4"
work since it adds support for sub-byte sized header elements.
I plan to work on the test suite again after I get v1 out (add BE support
so we can also check nft on s390 etc).
I haven't thought about it yet, first plan was to record separate traces
for LE and BE architectures, think thats better than trying to normalize
the endianess in the output (might also mask errors...).
I'll try to figure out a way to cure the set part.
One way would be accomondate the test parser to recognize the set data
and sort those into some common order (doesn't matter as long as both ondisk
and observed output are in the same sort order).
I don't mind if you add a quick patch that disables the payload
comparision for now, we can reenable it later by default once BE + set
works correctly.
next prev parent reply other threads:[~2015-08-12 17:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 1:31 [PATCH nft] tests: validate generated netlink instructions Florian Westphal
2015-07-20 12:50 ` Pablo Neira Ayuso
2015-07-20 15:10 ` Florian Westphal
2015-07-20 15:27 ` Pablo Neira Ayuso
2015-07-20 17:05 ` Pablo Neira Ayuso
2015-07-20 18:35 ` Florian Westphal
2015-08-12 17:34 ` Pablo Neira Ayuso
2015-08-12 17:46 ` Florian Westphal [this message]
2015-08-13 9:53 ` Pablo Neira Ayuso
2015-08-13 14:45 ` Florian Westphal
2015-08-16 18:14 ` Patrick McHardy
2015-08-16 18:20 ` Florian Westphal
2015-08-16 18:30 ` Patrick McHardy
2015-08-19 0:49 ` Pablo Neira Ayuso
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=20150812174624.GA31166@breakpoint.cc \
--to=fw@strlen.de \
--cc=kaber@trash.net \
--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).