mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Michael Wang](/assets/img/avatar_default.png)
Since 'list_for_each_continue_rcu' has already been replaced by 'list_for_each_entry_continue_rcu', pass 'list_head' to nf_queue() as a parameter can not benefit us any more. This patch will replace 'list_head' with 'nf_hook_ops' as the parameter of nf_queue() and __nf_queue() to save code. Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
38 lines
930 B
C
38 lines
930 B
C
#ifndef _NF_INTERNALS_H
|
|
#define _NF_INTERNALS_H
|
|
|
|
#include <linux/list.h>
|
|
#include <linux/skbuff.h>
|
|
#include <linux/netdevice.h>
|
|
|
|
#ifdef CONFIG_NETFILTER_DEBUG
|
|
#define NFDEBUG(format, args...) printk(KERN_DEBUG format , ## args)
|
|
#else
|
|
#define NFDEBUG(format, args...)
|
|
#endif
|
|
|
|
|
|
/* core.c */
|
|
extern unsigned int nf_iterate(struct list_head *head,
|
|
struct sk_buff *skb,
|
|
unsigned int hook,
|
|
const struct net_device *indev,
|
|
const struct net_device *outdev,
|
|
struct nf_hook_ops **elemp,
|
|
int (*okfn)(struct sk_buff *),
|
|
int hook_thresh);
|
|
|
|
/* nf_queue.c */
|
|
extern int nf_queue(struct sk_buff *skb,
|
|
struct nf_hook_ops *elem,
|
|
u_int8_t pf, unsigned int hook,
|
|
struct net_device *indev,
|
|
struct net_device *outdev,
|
|
int (*okfn)(struct sk_buff *),
|
|
unsigned int queuenum);
|
|
extern int __init netfilter_queue_init(void);
|
|
|
|
/* nf_log.c */
|
|
extern int __init netfilter_log_init(void);
|
|
|
|
#endif
|