All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Changli Gao <xiaosuo@gmail.com>
Cc: Florian Westphal <fw@strlen.de>, netfilter@vger.kernel.org
Subject: Re: Assertion error when using map
Date: Sat, 4 Jan 2020 12:15:09 +0100	[thread overview]
Message-ID: <20200104111509.GN795@breakpoint.cc> (raw)
In-Reply-To: <CABa6K_FjRaPTh1Qf_PuudozzMYKfBToA6i2apx7Shfr4sND8Ww@mail.gmail.com>

Changli Gao <xiaosuo@gmail.com> wrote:
> I know it is difficult. Do you have any plan to support this kind of
> features? Or, is there any way to work around this issue?

Yes, I think we should extend bitwise first, since that would make this
work:
src/nft -e -a --debug=netlink add rule inet filter input \
   ct mark set "ct mark & 0xffff0000 | meta mark & 0xffff"
inet filter input
  [ meta load mark => reg 2 ]
  [ bitwise reg 2 = (reg=2 & 0x0000ffff ) ^ 0x00000000 ]
  [ ct load mark => reg 1 ]
  [ bitwise reg 1 = (reg=1 & 0xffffffff ) ^ reg 2]
  [ ct set mark with reg 1 ]

As you can see I have netlink linearization part working, don't know yet
when I will start working on kernel part (or testing of this thing for
that matter ...).

      reply	other threads:[~2020-01-04 11:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 23:23 Assertion error when using map Changli Gao
2020-01-02 23:25 ` Florian Westphal
2020-01-03  3:05   ` Changli Gao
2020-01-04 11:15     ` Florian Westphal [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=20200104111509.GN795@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter@vger.kernel.org \
    --cc=xiaosuo@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.