All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ell@lists.01.org
Subject: Re: [PATCH] netlink: Allow NLM_F_DUMP on netlink requests
Date: Wed, 24 Sep 2014 10:27:50 -0500	[thread overview]
Message-ID: <5422E2F6.7030702@gmail.com> (raw)
In-Reply-To: <1411550016-7245-1-git-send-email-patrik.flykt@linux.intel.com>

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

Hi Patrik,

On 09/24/2014 04:13 AM, Patrik Flykt wrote:
> NLM_F_DUMP needs to be specified in cases where all existing network
> interfaces are requested. As NLM_F_DUMP happens to be covered by the
> current check for valid flags, update the check to allow the flag
> being set by the caller.
> ---
>   ell/netlink.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ell/netlink.c b/ell/netlink.c
> index d247173..79a2a00 100644
> --- a/ell/netlink.c
> +++ b/ell/netlink.c
> @@ -396,7 +396,7 @@ LIB_EXPORT unsigned int l_netlink_send(struct l_netlink *netlink,
>   						!netlink->command_lookup)
>   		return 0;
>
> -	if (flags & 0xff)
> +	if (flags & 0xff & ~NLM_F_DUMP)
>   		return 0;

Maybe a nitpick, but should this be simply:

if (flags & ~NLM_F_DUMP)

?

>
>   	if (function)
>

Regards,
-Denis

  reply	other threads:[~2014-09-24 15:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24  9:13 [PATCH] netlink: Allow NLM_F_DUMP on netlink requests Patrik Flykt
2014-09-24 15:27 ` Denis Kenzior [this message]
2014-09-26 10:13   ` Patrik Flykt

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=5422E2F6.7030702@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ell@lists.01.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.