public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Ben Pfaff <blp@nicira•com>
To: Pablo Neira Ayuso <pablo@netfilter•org>
Cc: Jan Engelhardt <jengelh@medozas•de>,
	Netfilter Developer Mailing List
	<netfilter-devel@vger•kernel.org>,
	Linux Networking Developer Mailing List <netdev@vger•kernel.org>
Subject: Re: genetlink misinterprets NEW as GET
Date: Thu, 06 Jan 2011 09:23:57 -0800	[thread overview]
Message-ID: <878vyyvtci.fsf@benpfaff.org> (raw)
In-Reply-To: <4D25C82F.4010306@netfilter.org> (Pablo Neira Ayuso's message of "Thu, 06 Jan 2011 14:48:31 +0100")

Pablo Neira Ayuso <pablo@netfilter•org> writes:

> On 04/01/11 03:14, Jan Engelhardt wrote:
>> 	/* Modifiers to GET request */
>> 	#define NLM_F_ROOT      0x100
>> 	#define NLM_F_MATCH     0x200
>> 	#define NLM_F_ATOMIC    0x400
>> 	#define NLM_F_DUMP      (NLM_F_ROOT|NLM_F_MATCH)
[...]
>> [N.B.: I am also wondering whether
>> 	(nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP
>> may have been desired, because NLM_F_DUMP is composed of two bits.]
>
> Someone may include NLM_F_ATOMIC to a dump operation, in that case the
> checking that you propose is not valid.

Are you saying that NLM_F_MATCH and NLM_F_ATOMIC are mutually
exclusive, and that NLM_F_ROOT|NLM_F_ATOMIC would also signal a
dump operation?  Otherwise the test that Jan proposes looks valid
to me.

  parent reply	other threads:[~2011-01-06 17:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04  2:14 genetlink misinterprets NEW as GET Jan Engelhardt
2011-01-06 13:48 ` Pablo Neira Ayuso
2011-01-06 14:25   ` Jan Engelhardt
2011-01-06 14:55     ` Pablo Neira Ayuso
2011-01-06 16:12       ` Jan Engelhardt
2011-01-06 17:23   ` Ben Pfaff [this message]
2011-01-07  1:31     ` Pablo Neira Ayuso
2011-01-07  9:38       ` Jan Engelhardt
2011-01-07 12:12         ` Pablo Neira Ayuso
2011-01-07 13:15       ` [patch] " Jan Engelhardt
2011-01-07 13:33         ` Pablo Neira Ayuso
2011-01-10  0:25           ` David Miller

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=878vyyvtci.fsf@benpfaff.org \
    --to=blp@nicira$(echo .)com \
    --cc=jengelh@medozas$(echo .)de \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=netfilter-devel@vger$(echo .)kernel.org \
    --cc=pablo@netfilter$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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