lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5035C6D5.6020608@linux.vnet.ibm.com>
Date:	Thu, 23 Aug 2012 13:59:49 +0800
From:	Michael Wang <wangyun@...ux.vnet.ibm.com>
To:	LKML <linux-kernel@...r.kernel.org>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	coreteam@...filter.org, netfilter@...r.kernel.org,
	netfilter-devel@...r.kernel.org
CC:	David Miller <davem@...emloft.net>, kaber@...sh.net,
	pablo@...filter.org
Subject: [PATCH 0/2] netfilter: code refine for using new interface 'list_for_each_entry_continue_rcu'

From: Michael Wang <wangyun@...ux.vnet.ibm.com>

Since 'list_for_each_continue_rcu' has been replaced with the new interface
'list_for_each_entry_continue_rcu' by commit 6705e86, we can no longer saving
code by passing 'list_head' to nf_iterate() and nf_queue() any more.

This patch set will pass 'nf_hook_ops' instead of 'list_head' to nf_iterate()
and nf_queue() as the parameter and saving some code.

Tested:
	add rule to iptables and check result by ping.
	nfqnl_test which is a test utility of libnetfilter_queue.

Signed-off-by: Michael Wang <wangyun@...ux.vnet.ibm.com>
---
 b/net/netfilter/core.c         |   24 ++++++++++--------------
 b/net/netfilter/nf_internals.h |    2 +-
 b/net/netfilter/nf_queue.c     |    6 +++---
 net/netfilter/core.c           |    4 ++--
 net/netfilter/nf_internals.h   |    2 +-
 net/netfilter/nf_queue.c       |    8 ++++----
 6 files changed, 21 insertions(+), 25 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ