Harald Welte | f6ebe77 | 2005-08-09 20:21:49 -0700 | [diff] [blame] | 1 | #ifndef _NF_INTERNALS_H |
| 2 | #define _NF_INTERNALS_H |
| 3 | |
Harald Welte | f6ebe77 | 2005-08-09 20:21:49 -0700 | [diff] [blame] | 4 | #include <linux/list.h> |
| 5 | #include <linux/skbuff.h> |
| 6 | #include <linux/netdevice.h> |
| 7 | |
| 8 | #ifdef CONFIG_NETFILTER_DEBUG |
Stephen Hemminger | 654d0fb | 2010-05-13 15:02:08 +0200 | [diff] [blame] | 9 | #define NFDEBUG(format, args...) printk(KERN_DEBUG format , ## args) |
Harald Welte | f6ebe77 | 2005-08-09 20:21:49 -0700 | [diff] [blame] | 10 | #else |
| 11 | #define NFDEBUG(format, args...) |
| 12 | #endif |
| 13 | |
| 14 | |
| 15 | /* core.c */ |
| 16 | extern unsigned int nf_iterate(struct list_head *head, |
Herbert Xu | 3db05fe | 2007-10-15 00:53:15 -0700 | [diff] [blame] | 17 | struct sk_buff *skb, |
Jan Engelhardt | 76108ce | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 18 | unsigned int hook, |
Harald Welte | f6ebe77 | 2005-08-09 20:21:49 -0700 | [diff] [blame] | 19 | const struct net_device *indev, |
| 20 | const struct net_device *outdev, |
Michael Wang | 2a6decf | 2012-08-22 19:59:57 +0000 | [diff] [blame] | 21 | struct nf_hook_ops **elemp, |
Harald Welte | f6ebe77 | 2005-08-09 20:21:49 -0700 | [diff] [blame] | 22 | int (*okfn)(struct sk_buff *), |
| 23 | int hook_thresh); |
| 24 | |
| 25 | /* nf_queue.c */ |
Patrick McHardy | 394f545 | 2006-08-05 00:58:52 -0700 | [diff] [blame] | 26 | extern int nf_queue(struct sk_buff *skb, |
Michael Wang | 1c15b67 | 2012-08-22 20:00:06 +0000 | [diff] [blame^] | 27 | struct nf_hook_ops *elem, |
Jan Engelhardt | 76108ce | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 28 | u_int8_t pf, unsigned int hook, |
Harald Welte | f6ebe77 | 2005-08-09 20:21:49 -0700 | [diff] [blame] | 29 | struct net_device *indev, |
| 30 | struct net_device *outdev, |
| 31 | int (*okfn)(struct sk_buff *), |
| 32 | unsigned int queuenum); |
| 33 | extern int __init netfilter_queue_init(void); |
| 34 | |
| 35 | /* nf_log.c */ |
| 36 | extern int __init netfilter_log_init(void); |
| 37 | |
| 38 | #endif |