netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: pablo@netfilter.org
To: netdev@vger.kernel.org
Cc: netfilter-devel@vger.kernel.org, davem@davemloft.net
Subject: [PATCH 0/2] netlink: netlink_dump_start takes pointer to data
Date: Fri, 24 Feb 2012 23:14:06 +0100	[thread overview]
Message-ID: <1330121648-2956-1-git-send-email-pablo@netfilter.org> (raw)

From: Pablo Neira Ayuso <pablo@netfilter.org>

Hi,

This patch modifies netlink_dump_start to take a pointer to data.
All caller are modified to use the new interface. This pointer can
be accessed via cb->data from the callback.

The follow-up patch for ctnetlink uses this change to pass the
filter structure, which allows filtering the dump by the ct
mark/mask.

Let me know if you are OK with this change, I can included it
in the next netfilter update or you may want to directly apply
it.

Thanks!

Pablo Neira Ayuso (2):
  netlink: netlink_dump_start may take data pointer for callbacks
  netfilter: ctnetlink: support kernel-space dump filterings

 crypto/crypto_user.c                          |    2 +-
 drivers/infiniband/core/netlink.c             |    2 +-
 include/linux/netfilter/nfnetlink_conntrack.h |    1 +
 include/linux/netlink.h                       |    2 +
 net/core/rtnetlink.c                          |    2 +-
 net/ipv4/inet_diag.c                          |    4 +-
 net/netfilter/ipset/ip_set_core.c             |    2 +-
 net/netfilter/nf_conntrack_netlink.c          |   37 +++++++++++++++++++++++--
 net/netfilter/nfnetlink_acct.c                |    2 +-
 net/netlink/af_netlink.c                      |    2 +
 net/netlink/genetlink.c                       |    2 +-
 net/unix/diag.c                               |    2 +-
 net/xfrm/xfrm_user.c                          |    2 +-
 13 files changed, 49 insertions(+), 13 deletions(-)

-- 
1.7.7.3


             reply	other threads:[~2012-02-24 22:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24 22:14 pablo [this message]
2012-02-24 22:14 ` [PATCH 1/2] netlink: netlink_dump_start may take data pointer for callbacks pablo
2012-02-24 22:47   ` David Miller
2012-02-24 23:18     ` Pablo Neira Ayuso
2012-02-24 22:14 ` [PATCH 2/2] netfilter: ctnetlink: support kernel-space dump filterings pablo
2012-02-25  1:09   ` Jan Engelhardt
2012-02-25 13:26     ` Pablo Neira Ayuso

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=1330121648-2956-1-git-send-email-pablo@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --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).