From: Yanchuan Nian <ycnian@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: Yanchuan Nian <ycnian@gmail.com>
Subject: [nft] Byteorder problem still exists in nft
Date: Mon, 1 Sep 2014 17:25:54 +0800 [thread overview]
Message-ID: <1409563554-1563-1-git-send-email-ycnian@gmail.com> (raw)
Hi,
There are still some byteorder prolems in nft.
The first one:
nft> add rule bridge filter input ip saddr 192.168.1.1 counter
nft> list table bridge filter
table bridge filter {
chain input {
type filter hook input priority 0;
unknown unknown 0xc0a80101 [invalid type] counter packets 0 bytes 0
}
}
nft>
I guess this error occurs in payload_gen_dependency() which set the byteorder
host endian but ether type is big endian.
The second one:
nft> add rule ip filter input ip length > 10 counter
BUG: invalid byte order conversion 0 => 2
nft: src/evaluate.c:153: byteorder_conversion_op: Assertion `0' failed.
This is because the datatype of ip length is integer_type whose byteorder is invalid.
next reply other threads:[~2014-09-01 9:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-01 9:25 Yanchuan Nian [this message]
[not found] ` <CADjjUBMbgdmaGGos1JyHiRwqf-PH9sfa2LKwxLfnXz5BPJyV9Q@mail.gmail.com>
2014-09-02 6:55 ` [nft] Byteorder problem still exists in nft Yanchuan Nian
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=1409563554-1563-1-git-send-email-ycnian@gmail.com \
--to=ycnian@gmail.com \
--cc=netfilter-devel@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).