aboutsummaryrefslogtreecommitdiff
path: root/include/linux/netfilter_ipv4/ip_logging.h
blob: 0c5c52cb658928f4c45ee7f2c32a69d65ee575d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* IPv4 macros for the internal logging interface. */
#ifndef __IP_LOGGING_H
#define __IP_LOGGING_H

#ifdef __KERNEL__
#include <linux/socket.h>
#include <linux/netfilter_logging.h>

#define nf_log_ip_packet(pskb,hooknum,in,out,fmt,args...) \
	nf_log_packet(AF_INET,pskb,hooknum,in,out,fmt,##args)

#define nf_log_ip(pfh,len,fmt,args...) \
	nf_log(AF_INET,pfh,len,fmt,##args)

#define nf_ip_log_register(logging) nf_log_register(AF_INET,logging)
#define nf_ip_log_unregister(logging) nf_log_unregister(AF_INET,logging)
	
#endif /*__KERNEL__*/

#endif /*__IP_LOGGING_H*/