Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
nf_log.h File Reference
#include <linux/netfilter.h>

Go to the source code of this file.

Data Structures

struct  nf_loginfo
 
struct  nf_logger
 

Macros

#define NF_LOG_TCPSEQ   0x01 /* Log TCP sequence numbers */
 
#define NF_LOG_TCPOPT   0x02 /* Log TCP options */
 
#define NF_LOG_IPOPT   0x04 /* Log IP options */
 
#define NF_LOG_UID   0x08 /* Log UID owning local socket */
 
#define NF_LOG_MASK   0x0f
 
#define NF_LOG_TYPE_LOG   0x01
 
#define NF_LOG_TYPE_ULOG   0x02
 

Typedefs

typedef void nf_logfn (u_int8_t pf, unsigned int hooknum, const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *li, const char *prefix)
 

Functions

int nf_log_register (u_int8_t pf, struct nf_logger *logger)
 
void nf_log_unregister (struct nf_logger *logger)
 
int nf_log_bind_pf (u_int8_t pf, const struct nf_logger *logger)
 
void nf_log_unbind_pf (u_int8_t pf)
 
 __printf (7, 8) void nf_log_packet(u_int8_t pf
 

Variables

unsigned int hooknum
 
unsigned int struct sk_buffskb
 
unsigned int struct sk_buff
struct net_device
in
 
unsigned int struct sk_buff
struct net_device struct
net_device
out
 
unsigned int struct sk_buff
struct net_device struct
net_device struct nf_loginfo
li
 
unsigned int struct sk_buff
struct net_device struct
net_device struct nf_loginfo
const char
fmt
 

Macro Definition Documentation

#define NF_LOG_IPOPT   0x04 /* Log IP options */

Definition at line 11 of file nf_log.h.

#define NF_LOG_MASK   0x0f

Definition at line 13 of file nf_log.h.

#define NF_LOG_TCPOPT   0x02 /* Log TCP options */

Definition at line 10 of file nf_log.h.

#define NF_LOG_TCPSEQ   0x01 /* Log TCP sequence numbers */

Definition at line 9 of file nf_log.h.

#define NF_LOG_TYPE_LOG   0x01

Definition at line 15 of file nf_log.h.

#define NF_LOG_TYPE_ULOG   0x02

Definition at line 16 of file nf_log.h.

#define NF_LOG_UID   0x08 /* Log UID owning local socket */

Definition at line 12 of file nf_log.h.

Typedef Documentation

Definition at line 33 of file nf_log.h.

Function Documentation

__printf ( ,
 
)
int nf_log_bind_pf ( u_int8_t  pf,
const struct nf_logger logger 
)

Definition at line 86 of file nf_log.c.

int nf_log_register ( u_int8_t  pf,
struct nf_logger logger 
)

Definition at line 36 of file nf_log.c.

void nf_log_unbind_pf ( u_int8_t  pf)

Definition at line 101 of file nf_log.c.

void nf_log_unregister ( struct nf_logger logger)

Definition at line 67 of file nf_log.c.

Variable Documentation

Definition at line 62 of file nf_log.h.

unsigned int hooknum

Definition at line 58 of file nf_log.h.

Definition at line 60 of file nf_log.h.

Definition at line 62 of file nf_log.h.

Definition at line 61 of file nf_log.h.

unsigned int struct sk_buff* skb

Definition at line 59 of file nf_log.h.