nf_internals.h 930 Bytes
Newer Older
1
2
3
4
5
6
7
8
#ifndef _NF_INTERNALS_H
#define _NF_INTERNALS_H

#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>

#ifdef CONFIG_NETFILTER_DEBUG
9
#define NFDEBUG(format, args...)  printk(KERN_DEBUG format , ## args)
10
11
12
13
14
15
16
#else
#define NFDEBUG(format, args...)
#endif


/* core.c */
extern unsigned int nf_iterate(struct list_head *head,
17
				struct sk_buff *skb,
18
				unsigned int hook,
19
20
				const struct net_device *indev,
				const struct net_device *outdev,
21
				struct nf_hook_ops **elemp,
22
23
24
25
				int (*okfn)(struct sk_buff *),
				int hook_thresh);

/* nf_queue.c */
26
extern int nf_queue(struct sk_buff *skb,
27
		    struct nf_hook_ops *elem,
28
		    u_int8_t pf, unsigned int hook,
29
30
31
32
33
34
35
36
37
38
		    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