Merge branch 'master' of /usr/src/ntfs-2.6/
[linux-2.6] / include / linux / netfilter_logging.h
1 /* Internal logging interface, which relies on the real 
2    LOG target modules */
3 #ifndef __LINUX_NETFILTER_LOGGING_H
4 #define __LINUX_NETFILTER_LOGGING_H
5
6 #ifdef __KERNEL__
7 #include <asm/atomic.h>
8
9 struct nf_logging_t {
10         void (*nf_log_packet)(struct sk_buff **pskb,
11                               unsigned int hooknum,
12                               const struct net_device *in,
13                               const struct net_device *out,
14                               const char *prefix);
15         void (*nf_log)(char *pfh, size_t len,
16                        const char *prefix);
17 };
18
19 extern void nf_log_register(int pf, const struct nf_logging_t *logging);
20 extern void nf_log_unregister(int pf, const struct nf_logging_t *logging);
21
22 extern void nf_log_packet(int pf,
23                           struct sk_buff **pskb,
24                           unsigned int hooknum,
25                           const struct net_device *in,
26                           const struct net_device *out,
27                           const char *fmt, ...);
28 extern void nf_log(int pf,
29                    char *pfh, size_t len,
30                    const char *fmt, ...);
31 #endif /*__KERNEL__*/
32
33 #endif /*__LINUX_NETFILTER_LOGGING_H*/