blob: 61a3c927e63cf1c9f0f9b596155e5c8a74bcd71a [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
Stephen Hemminger654d0fb2010-05-13 15:02:08 +02009#define NFDEBUG(format, args...) printk(KERN_DEBUG format , ## args)
Harald Weltef6ebe772005-08-09 20:21:49 -070010#else
11#define NFDEBUG(format, args...)
12#endif
13
14
15/* core.c */
Joe Perchesc1b12032013-10-18 13:48:25 -070016unsigned int nf_iterate(struct list_head *head, struct sk_buff *skb,
17 unsigned int hook, const struct net_device *indev,
18 const struct net_device *outdev,
19 struct nf_hook_ops **elemp,
20 int (*okfn)(struct sk_buff *), int hook_thresh);
Harald Weltef6ebe772005-08-09 20:21:49 -070021
22/* nf_queue.c */
Joe Perchesc1b12032013-10-18 13:48:25 -070023int nf_queue(struct sk_buff *skb, struct nf_hook_ops *elem, u_int8_t pf,
24 unsigned int hook, struct net_device *indev,
25 struct net_device *outdev, int (*okfn)(struct sk_buff *),
26 unsigned int queuenum);
27int __init netfilter_queue_init(void);
Harald Weltef6ebe772005-08-09 20:21:49 -070028
29/* nf_log.c */
Joe Perchesc1b12032013-10-18 13:48:25 -070030int __init netfilter_log_init(void);
Harald Weltef6ebe772005-08-09 20:21:49 -070031
32#endif