blob: bf6609978af7ae3a1f961fe170684909b7453d2b [file] [log] [blame]
Harald Weltef6ebe772005-08-09 20:21:49 -07001#ifndef _NF_INTERNALS_H
2#define _NF_INTERNALS_H
3
Harald Weltef6ebe772005-08-09 20:21:49 -07004#include <linux/list.h>
5#include <linux/skbuff.h>
6#include <linux/netdevice.h>
7
8#ifdef CONFIG_NETFILTER_DEBUG
9#define NFDEBUG(format, args...) printk(format , ## args)
10#else
11#define NFDEBUG(format, args...)
12#endif
13
14
15/* core.c */
16extern unsigned int nf_iterate(struct list_head *head,
Herbert Xu3db05fe2007-10-15 00:53:15 -070017 struct sk_buff *skb,
Jan Engelhardt76108ce2008-10-08 11:35:00 +020018 unsigned int hook,
Harald Weltef6ebe772005-08-09 20:21:49 -070019 const struct net_device *indev,
20 const struct net_device *outdev,
21 struct list_head **i,
22 int (*okfn)(struct sk_buff *),
23 int hook_thresh);
24
25/* nf_queue.c */
Patrick McHardy394f5452006-08-05 00:58:52 -070026extern int nf_queue(struct sk_buff *skb,
YOSHIFUJI Hideaki601e68e2007-02-12 11:15:49 -080027 struct list_head *elem,
Jan Engelhardt76108ce2008-10-08 11:35:00 +020028 u_int8_t pf, unsigned int hook,
Harald Weltef6ebe772005-08-09 20:21:49 -070029 struct net_device *indev,
30 struct net_device *outdev,
31 int (*okfn)(struct sk_buff *),
32 unsigned int queuenum);
33extern int __init netfilter_queue_init(void);
34
35/* nf_log.c */
36extern int __init netfilter_log_init(void);
37
38#endif