Linux-2.6.12-rc2
[linux-flexiantxendom0-natty.git] / include / linux / netfilter_ipv4 / ip_logging.h
1 /* IPv4 macros for the internal logging interface. */
2 #ifndef __IP_LOGGING_H
3 #define __IP_LOGGING_H
4
5 #ifdef __KERNEL__
6 #include <linux/socket.h>
7 #include <linux/netfilter_logging.h>
8
9 #define nf_log_ip_packet(pskb,hooknum,in,out,fmt,args...) \
10         nf_log_packet(AF_INET,pskb,hooknum,in,out,fmt,##args)
11
12 #define nf_log_ip(pfh,len,fmt,args...) \
13         nf_log(AF_INET,pfh,len,fmt,##args)
14
15 #define nf_ip_log_register(logging) nf_log_register(AF_INET,logging)
16 #define nf_ip_log_unregister(logging) nf_log_unregister(AF_INET,logging)
17         
18 #endif /*__KERNEL__*/
19
20 #endif /*__IP_LOGGING_H*/