ze-filter  (ze-filter-0.8.0-develop-180218)
ze-dns-iprbwl.c File Reference
#include <ze-sys.h>
#include "ze-dns-iprbwl.h"
#include "ze-filter.h"

Go to the source code of this file.

Classes

struct  rbwlconf_T
 

Macros

#define RBWL_NONE   0
 
#define RBWL_ONMATCH_CONTINUE   1
 
#define RBWL_CHECK_ADDR   4
 
#define RBWL_CHECK_NAME   8
 
#define RBWL_CHECK_ALL   (RBWL_CHECK_ADDR | RBWL_CHECK_NAME)
 
#define RBWL_LENX   64
 
#define DIM_RBWL   16
 
#define RBWL_LOCK()
 
#define RBWL_UNLOCK()
 
#define KEYVALUE   "^[a-z0-9_-]+=[^ \t]+"
 

Functions

bool check_dns_iprbwl (char *ip, char *name, char *rbwl, char *code, size_t size)
 
bool load_iprbwl_table (char *cfdir, char *fname)
 
bool init_iprbwl_table ()
 
void dump_iprbwl_table ()
 
uint32_t check_iprbwl_table (char *id, char *ip, char *name, iprbwl_T *rbwl)
 

Macro Definition Documentation

◆ DIM_RBWL

#define DIM_RBWL   16

Definition at line 154 of file ze-dns-iprbwl.c.

◆ KEYVALUE

#define KEYVALUE   "^[a-z0-9_-]+=[^ \t]+"

Definition at line 196 of file ze-dns-iprbwl.c.

◆ RBWL_CHECK_ADDR

#define RBWL_CHECK_ADDR   4

Definition at line 35 of file ze-dns-iprbwl.c.

◆ RBWL_CHECK_ALL

#define RBWL_CHECK_ALL   (RBWL_CHECK_ADDR | RBWL_CHECK_NAME)

Definition at line 37 of file ze-dns-iprbwl.c.

◆ RBWL_CHECK_NAME

#define RBWL_CHECK_NAME   8

Definition at line 36 of file ze-dns-iprbwl.c.

◆ RBWL_LENX

#define RBWL_LENX   64

Definition at line 152 of file ze-dns-iprbwl.c.

◆ RBWL_LOCK

#define RBWL_LOCK ( )
Value:
if (pthread_mutex_lock(&rbwl_mutex) != 0) { \
ZE_LogSysError("pthread_mutex_lock(rbwl_mutex)"); \
}

Definition at line 178 of file ze-dns-iprbwl.c.

◆ RBWL_NONE

#define RBWL_NONE   0

Definition at line 31 of file ze-dns-iprbwl.c.

◆ RBWL_ONMATCH_CONTINUE

#define RBWL_ONMATCH_CONTINUE   1

Definition at line 33 of file ze-dns-iprbwl.c.

◆ RBWL_UNLOCK

#define RBWL_UNLOCK ( )
Value:
if (pthread_mutex_unlock(&rbwl_mutex) != 0) { \
ZE_LogSysError("pthread_mutex_unlock(rbwl_mutex)"); \
}

Definition at line 183 of file ze-dns-iprbwl.c.