netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ebt_log.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "../include/ebtables_u.h"
#include <linux/netfilter_bridge/ebt_log.h>
Include dependency graph for ebt_log.c:

Data Structures

struct  _code
 

Macros

#define LOG_EMERG   0 /* system is unusable */
 
#define LOG_ALERT   1 /* action must be taken immediately */
 
#define LOG_CRIT   2 /* critical conditions */
 
#define LOG_ERR   3 /* error conditions */
 
#define LOG_WARNING   4 /* warning conditions */
 
#define LOG_NOTICE   5 /* normal but significant condition */
 
#define LOG_INFO   6 /* informational */
 
#define LOG_DEBUG   7 /* debug-level messages */
 
#define LOG_DEFAULT_LEVEL   LOG_INFO
 
#define LOG_PREFIX   '1'
 
#define LOG_LEVEL   '2'
 
#define LOG_ARP   '3'
 
#define LOG_IP   '4'
 
#define LOG_LOG   '5'
 
#define LOG_IP6   '6'
 
#define OPT_PREFIX   0x01
 
#define OPT_LEVEL   0x02
 
#define OPT_ARP   0x04
 
#define OPT_IP   0x08
 
#define OPT_LOG   0x10
 
#define OPT_IP6   0x20
 

Typedefs

typedef struct _code CODE
 

Functions

void _init (void)
 

Macro Definition Documentation

#define LOG_ALERT   1 /* action must be taken immediately */
#define LOG_ARP   '3'
#define LOG_CRIT   2 /* critical conditions */
#define LOG_DEBUG   7 /* debug-level messages */
#define LOG_DEFAULT_LEVEL   LOG_INFO
#define LOG_EMERG   0 /* system is unusable */
#define LOG_INFO   6 /* informational */

Referenced by dlog(), dlog_ct(), and dlog_exp().

#define LOG_IP   '4'
#define LOG_IP6   '6'
#define LOG_LEVEL   '2'
#define LOG_LOG   '5'
#define LOG_NOTICE   5 /* normal but significant condition */
#define LOG_PREFIX   '1'
#define LOG_WARNING   4 /* warning conditions */

Referenced by dlog(), and nl_resize_socket_buffer().

#define OPT_ARP   0x04
#define OPT_IP   0x08
#define OPT_IP6   0x20
#define OPT_LEVEL   0x02
#define OPT_LOG   0x10
#define OPT_PREFIX   0x01

Typedef Documentation

typedef struct _code CODE

Function Documentation

void _init ( void  )

References ebt_register_watcher().

Here is the call graph for this function: