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

Go to the source code of this file.

Macros

#define LH_WORKTIME   0
 
#define LH_BADRCPT   1
 
#define LH_SPAMTRAP   2
 
#define LH_EMPTYCONN   3
 
#define LH_EMPTYMSGS   4
 
#define LH_BADMX   5
 
#define LH_LONGCONN   6
 
#define LH_HI_SCORE   7
 
#define LH_BAD_RESOLVE   8
 
#define LH_MAX   9
 
#define __ZE_LIVEHISTORY_H
 

Functions

void livehistory_reset ()
 
bool livehistory_clean_table ()
 
int livehistory_check_host (char *, time_t, int)
 
int livehistory_add_entry (char *, time_t, int, int)
 
void livehistory_log_table (int, bool)
 

Macro Definition Documentation

◆ __ZE_LIVEHISTORY_H

#define __ZE_LIVEHISTORY_H

Definition at line 47 of file ze-livehistory.h.

◆ LH_BAD_RESOLVE

#define LH_BAD_RESOLVE   8

Definition at line 34 of file ze-livehistory.h.

◆ LH_BADMX

#define LH_BADMX   5

Definition at line 31 of file ze-livehistory.h.

◆ LH_BADRCPT

#define LH_BADRCPT   1

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

◆ LH_EMPTYCONN

#define LH_EMPTYCONN   3

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

◆ LH_EMPTYMSGS

#define LH_EMPTYMSGS   4

Definition at line 30 of file ze-livehistory.h.

◆ LH_HI_SCORE

#define LH_HI_SCORE   7

Definition at line 33 of file ze-livehistory.h.

◆ LH_LONGCONN

#define LH_LONGCONN   6

Definition at line 32 of file ze-livehistory.h.

◆ LH_MAX

#define LH_MAX   9

Definition at line 36 of file ze-livehistory.h.

◆ LH_SPAMTRAP

#define LH_SPAMTRAP   2

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

◆ LH_WORKTIME

#define LH_WORKTIME   0

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

Function Documentation

◆ livehistory_add_entry()

int livehistory_add_entry ( char *  ,
time_t  ,
int  ,
int   
)

Definition at line 253 of file ze-livehistory.c.

◆ livehistory_check_host()

int livehistory_check_host ( char *  ,
time_t  ,
int   
)

Definition at line 338 of file ze-livehistory.c.

◆ livehistory_clean_table()

bool livehistory_clean_table ( )

Definition at line 214 of file ze-livehistory.c.

◆ livehistory_log_table()

void livehistory_log_table ( int  ,
bool   
)

Definition at line 469 of file ze-livehistory.c.

◆ livehistory_reset()

void livehistory_reset ( )

Definition at line 161 of file ze-livehistory.c.