Blame view

net/netfilter/nf_internals.h 922 Bytes
f6ebe77f9   Harald Welte   [NETFILTER]: spli...
1
2
  #ifndef _NF_INTERNALS_H
  #define _NF_INTERNALS_H
f6ebe77f9   Harald Welte   [NETFILTER]: spli...
3
4
5
6
7
  #include <linux/list.h>
  #include <linux/skbuff.h>
  #include <linux/netdevice.h>
  
  #ifdef CONFIG_NETFILTER_DEBUG
654d0fbdc   Stephen Hemminger   netfilter: cleanu...
8
  #define NFDEBUG(format, args...)  printk(KERN_DEBUG format , ## args)
f6ebe77f9   Harald Welte   [NETFILTER]: spli...
9
10
11
12
13
14
15
  #else
  #define NFDEBUG(format, args...)
  #endif
  
  
  /* core.c */
  extern unsigned int nf_iterate(struct list_head *head,
3db05fea5   Herbert Xu   [NETFILTER]: Repl...
16
  				struct sk_buff *skb,
76108cea0   Jan Engelhardt   netfilter: Use un...
17
  				unsigned int hook,
f6ebe77f9   Harald Welte   [NETFILTER]: spli...
18
19
20
21
22
23
24
  				const struct net_device *indev,
  				const struct net_device *outdev,
  				struct list_head **i,
  				int (*okfn)(struct sk_buff *),
  				int hook_thresh);
  
  /* nf_queue.c */
394f545db   Patrick McHardy   [NETFILTER]: nf_q...
25
  extern int nf_queue(struct sk_buff *skb,
601e68e10   YOSHIFUJI Hideaki   [NETFILTER]: Fix ...
26
  		    struct list_head *elem,
76108cea0   Jan Engelhardt   netfilter: Use un...
27
  		    u_int8_t pf, unsigned int hook,
f6ebe77f9   Harald Welte   [NETFILTER]: spli...
28
29
30
31
32
33
34
35
36
37
  		    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