All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Sowden <jeremy@azazel.net>
To: Kevin 'ldir' Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Feature Request: nft: support non-immediate second operand
Date: Wed, 16 Mar 2022 11:48:04 +0000	[thread overview]
Message-ID: <YjHOdHNWINuMcQky@azazel.net> (raw)
In-Reply-To: <5893CB79-E204-42CA-98A1-7D3C2FCCE532@darbyshire-bryant.me.uk>

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]

On 2022-03-15, at 21:15:58 +0000, Kevin 'ldir' Darbyshire-Bryant wrote:
> I’m trying to migrate to using nftables and hitting some good things
> but also a bad thing.  I have a firewall that makes use of conntrack
> marks that get bit-wise manipulated by iptables.  I don’t appear to be
> able to get the same functionality in nftables.  eg:
> 
> The following stores the DSCP into the conntrack mark and sets another
> bit as a flag.  Unfortunately it destroys any prior value stored in
> say the upper 16 bits.
> 
> meta nfproto ipv4 ct mark set @nh,8,6 or 0x200 counter
> 
> What I’d like to do instead is something more like:
> 
> meta nfproto ipv4 ct mark set ct mark or @nh,8,6 ct mark set ct mark or 0x200 counter

Funnily enough, I picked the work I did on this two years ago recently.
I was going to post it again last month when I noticed there was a bug
in the ipv6 delinearization.  I'll see if I can fix it this week-end.
If not, I'll post the patches as an RFC to get some feedback at least.

J.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2022-03-16 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-15 21:15 Feature Request: nft: support non-immediate second operand Kevin 'ldir' Darbyshire-Bryant
2022-03-16 11:48 ` Jeremy Sowden [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=YjHOdHNWINuMcQky@azazel.net \
    --to=jeremy@azazel.net \
    --cc=ldir@darbyshire-bryant.me.uk \
    --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 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.