* [nft] Byteorder problem still exists in nft
@ 2014-09-01 9:25 Yanchuan Nian
[not found] ` <CADjjUBMbgdmaGGos1JyHiRwqf-PH9sfa2LKwxLfnXz5BPJyV9Q@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Yanchuan Nian @ 2014-09-01 9:25 UTC (permalink / raw)
To: netfilter-devel; +Cc: Yanchuan Nian
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [nft] Byteorder problem still exists in nft
[not found] ` <CADjjUBMbgdmaGGos1JyHiRwqf-PH9sfa2LKwxLfnXz5BPJyV9Q@mail.gmail.com>
@ 2014-09-02 6:55 ` Yanchuan Nian
0 siblings, 0 replies; 2+ messages in thread
From: Yanchuan Nian @ 2014-09-02 6:55 UTC (permalink / raw)
To: Alvaro Neira Ayuso; +Cc: netfilter-devel
On Mon, Sep 01, 2014 at 01:54:38PM +0200, Alvaro Neira Ayuso wrote:
> Hello
>
> El 01/09/2014 11:25, "Yanchuan Nian" <ycnian@gmail.com> escribió:
> >
> > 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.
>
> I have already reported this bug. I have sent some patches but Patrick
> showed me the best way to fix it and I'm working in some patches.
>
> Regards
>
> Alvaro
Oh, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-02 6:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-01 9:25 [nft] Byteorder problem still exists in nft Yanchuan Nian
[not found] ` <CADjjUBMbgdmaGGos1JyHiRwqf-PH9sfa2LKwxLfnXz5BPJyV9Q@mail.gmail.com>
2014-09-02 6:55 ` Yanchuan Nian
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).