ze-filter  (ze-filter-0.8.0-develop-180218)
ze-dbbl.h File Reference

Go to the source code of this file.

Classes

struct  db_map_T
 

Macros

#define BL_ORACLE   1
 
#define BL_PATMATCH   2
 
#define BL_BADRCPT   3
 
#define BL_THROTTLE   4
 
#define __ZE_DBBL_H
 

Typedefs

typedef struct db_map_T db_map_T
 

Functions

bool db_open_blacklist ()
 
bool db_check_blacklist (char *ip)
 
bool db_close_blacklist ()
 
bool db_blackliste_check (char *why, char *key, db_map_T *r)
 
bool db_map_check (char *, char *, char *, char *, size_t)
 
bool db_map_add (char *, char *, char *, char *)
 
bool db_map_open (char *bl)
 
bool db_map_close (char *bl)
 
bool db_map_close_all (void)
 

Macro Definition Documentation

◆ __ZE_DBBL_H

#define __ZE_DBBL_H

Definition at line 59 of file ze-dbbl.h.

◆ BL_BADRCPT

#define BL_BADRCPT   3

Definition at line 28 of file ze-dbbl.h.

◆ BL_ORACLE

#define BL_ORACLE   1

Definition at line 26 of file ze-dbbl.h.

◆ BL_PATMATCH

#define BL_PATMATCH   2

Definition at line 27 of file ze-dbbl.h.

◆ BL_THROTTLE

#define BL_THROTTLE   4

Definition at line 29 of file ze-dbbl.h.

Typedef Documentation

◆ db_map_T

typedef struct db_map_T db_map_T

Function Documentation

◆ db_blackliste_check()

bool db_blackliste_check ( char *  why,
char *  key,
db_map_T r 
)

Definition at line 190 of file ze-dbbl.c.

◆ db_check_blacklist()

bool db_check_blacklist ( char *  ip)

Definition at line 103 of file ze-dbbl.c.

◆ db_close_blacklist()

bool db_close_blacklist ( )

Definition at line 83 of file ze-dbbl.c.

◆ db_map_add()

bool db_map_add ( char *  ,
char *  ,
char *  ,
char *   
)

Definition at line 521 of file ze-dbbl.c.

◆ db_map_check()

bool db_map_check ( char *  ,
char *  ,
char *  ,
char *  ,
size_t   
)

Definition at line 454 of file ze-dbbl.c.

◆ db_map_close()

bool db_map_close ( char *  bl)

Definition at line 379 of file ze-dbbl.c.

◆ db_map_close_all()

bool db_map_close_all ( void  )

Definition at line 424 of file ze-dbbl.c.

◆ db_map_open()

bool db_map_open ( char *  bl)

Definition at line 317 of file ze-dbbl.c.

◆ db_open_blacklist()

bool db_open_blacklist ( )

Definition at line 56 of file ze-dbbl.c.