4 /* those NF_LOG_* defines and struct nf_loginfo are legacy definitios that will
5 * disappear once iptables is replaced with pkttables. Please DO NOT use them
7 #define NF_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */
8 #define NF_LOG_TCPOPT 0x02 /* Log TCP options */
9 #define NF_LOG_IPOPT 0x04 /* Log IP options */
10 #define NF_LOG_UID 0x08 /* Log UID owning local socket */
11 #define NF_LOG_MASK 0x0f
13 #define NF_LOG_TYPE_LOG 0x01
14 #define NF_LOG_TYPE_ULOG 0x02
31 typedef void nf_logfn(unsigned int pf
,
33 const struct sk_buff
*skb
,
34 const struct net_device
*in
,
35 const struct net_device
*out
,
36 const struct nf_loginfo
*li
,
45 /* Function to register/unregister log function. */
46 int nf_log_register(int pf
, const struct nf_logger
*logger
);
47 void nf_log_unregister(const struct nf_logger
*logger
);
48 void nf_log_unregister_pf(int pf
);
50 /* Calls the registered backend logging function */
51 void nf_log_packet(int pf
,
53 const struct sk_buff
*skb
,
54 const struct net_device
*in
,
55 const struct net_device
*out
,
56 const struct nf_loginfo
*li
,
57 const char *fmt
, ...) __attribute__ ((format(printf
,7,8)));
59 #endif /* _NF_LOG_H */