netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: [rfc] using xor in mark targets
Date: Tue, 04 Dec 2007 09:11:47 +0100	[thread overview]
Message-ID: <47550BC3.9080404@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0712031832430.11746@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> On Dec 3 2007 16:09, Patrick McHardy wrote:
>> Jan Engelhardt wrote:
>>> I was asking what name I should give to the option that enables
>>> "new-style" handling (origmark & ~mask ^ val):
>>>
>>>  --set-extended-mark val/mask
>>>
>>> because it is not sooo extended after all, just a different notation of what
>>> libxt_MARK takes right now.
>> Why not simply "--and-mark", "--or-mark", "--xor-mark", ...?
>>
> Alright, I just saw that MARK will remain compatible to my plans.
> But it concerns CONNMARK. See this patch, which introduces --set-xmark.
> 
> Assumes a xt_CONNMARK.ko v2 that does:
> --set:
> 	ctmark = (ctmark & info->ctmark_mask) ^ info->ctmark_value;
> --save:
> 	ctmark = (nfmark & info->nfmark_mask) ^ (ctmark & info->ctmark_mask);
> --restore:
> 	nfmark = (nfmark & info->nfmark_mask) ^ (ctmark & info->ctmark_mask);
> 
> 
> As you can see, it would introduce a new option "--set-xmark", and
> that name does not sound as appalling as --set-mark, so I was looking
> for a better one ;-)


It would be easier for me if you'd explain what every option does,
especially why you need this set-xmark option.

  reply	other threads:[~2007-12-04  8:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-29 22:50 [rfc] using xor in mark targets Jan Engelhardt
2007-11-29 23:27 ` Patrick McHardy
2007-12-03 15:03   ` Jan Engelhardt
2007-12-03 15:09     ` Patrick McHardy
2007-12-03 17:35       ` Jan Engelhardt
2007-12-04  8:11         ` Patrick McHardy [this message]
2007-12-04  8:54           ` Jan Engelhardt
2007-12-04  9:17             ` Patrick McHardy
2007-12-04 10:52               ` Jan Engelhardt
2007-12-04 10:54                 ` Patrick McHardy
2007-12-04 14:05                   ` Jan Engelhardt
2007-12-04 14:08                     ` Patrick McHardy

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=47550BC3.9080404@trash.net \
    --to=kaber@trash.net \
    --cc=jengelh@computergmbh.de \
    --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).