[CONNECTOR]: Update documentation to match reality.
[linux-2.6/verdex.git] / include / linux / netfilter_logging.h
blob562bb6aad4e17df4e90727420c8226cabb60e818
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
6 #ifdef __KERNEL__
7 #include <asm/atomic.h>
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);
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);
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__*/
33 #endif /*__LINUX_NETFILTER_LOGGING_H*/