ze-filter  (ze-filter-0.8.0-develop-180218)
ze-filter-data.h File Reference
#include "libmilter/mfapi.h"
#include "ze-smmacros.h"
#include "ze-reply.h"
#include "ze-history.h"
#include <ze-check-connection.h>
#include <ze-callback.h>
#include <ze-callbackchecks.h>
#include <ze-callbacklogs.h>
#include <ze-log-files.h>
#include <ze-log-virus.h>
#include <ze-log-quarantine.h>
#include <ze-log-grey.h>
#include <ze-log-regex.h>
#include <ze-libmilter.h>
#include <ze-mod-tools.h>

Go to the source code of this file.

Classes

struct  MSG_T
 
struct  MTA_caps_T
 
struct  dresult_T
 
struct  CTXPRIV_T
 

Macros

#define SM_LM_VRS_MAJOR(v)   (((v) & 0x7f000000) >> 24)
 
#define SM_LM_VRS_MINOR(v)   (((v) & 0x007fff00) >> 8)
 
#define SM_LM_VRS_PLVL(v)   ((v) & 0x0000007f)
 
#define SMFI_VERSION_MAJOR   SM_LM_VRS_MAJOR(SMFI_VERSION)
 
#define SMFI_VERSION_MINOR   SM_LM_VRS_MINOR(SMFI_VERSION)
 
#define SMFI_VERSION_PLVL   SM_LM_VRS_PLVL(SMFI_VERSION)
 
#define MLFIPRIV(ctx)   ((ctx) != NULL ? (CTXPRIV_T *) smfi_getpriv(ctx) : NULL)
 
#define CTX_NETCLASS_LABEL(priv)
 
#define LOG_CONNECTION_HEADER(s, msg, n, ip, class)
 
#define DO_QUARANTINE_MESSAGE(priv, why, suffix)
 
#define __ZE_FILTER_DATA_H
 

Variables

char my_hostname []
 
int mx_check_level
 

Macro Definition Documentation

◆ __ZE_FILTER_DATA_H

#define __ZE_FILTER_DATA_H

Definition at line 325 of file ze-filter-data.h.

◆ CTX_NETCLASS_LABEL

#define CTX_NETCLASS_LABEL (   priv)
Value:
((priv) != NULL ? \
STREMPTY(priv->netclass.label, NET_CLASS_LABEL(priv->netclass.class)) : \
"UNKNOWN")
#define STREMPTY(x, r)
Definition: macros.h:82
#define NET_CLASS_LABEL(class)
Definition: ze-netclass.h:57

Definition at line 259 of file ze-filter-data.h.

◆ DO_QUARANTINE_MESSAGE

#define DO_QUARANTINE_MESSAGE (   priv,
  why,
  suffix 
)

Definition at line 291 of file ze-filter-data.h.

◆ LOG_CONNECTION_HEADER

#define LOG_CONNECTION_HEADER (   s,
  msg,
  n,
  ip,
  class 
)
Value:
do \
{ \
snprintf(s, sizeof (s), "%s : %s : %d [%02X - %s]", \
msg, ip, n, class, NET_CLASS(class)); \
} \
while (0)
int msg[MAX_SCORE+2]
Definition: ze-stats.c:41

Definition at line 283 of file ze-filter-data.h.

◆ MLFIPRIV

#define MLFIPRIV (   ctx)    ((ctx) != NULL ? (CTXPRIV_T *) smfi_getpriv(ctx) : NULL)

Definition at line 256 of file ze-filter-data.h.

◆ SM_LM_VRS_MAJOR

#define SM_LM_VRS_MAJOR (   v)    (((v) & 0x7f000000) >> 24)

Definition at line 29 of file ze-filter-data.h.

◆ SM_LM_VRS_MINOR

#define SM_LM_VRS_MINOR (   v)    (((v) & 0x007fff00) >> 8)

Definition at line 32 of file ze-filter-data.h.

◆ SM_LM_VRS_PLVL

#define SM_LM_VRS_PLVL (   v)    ((v) & 0x0000007f)

Definition at line 35 of file ze-filter-data.h.

◆ SMFI_VERSION_MAJOR

#define SMFI_VERSION_MAJOR   SM_LM_VRS_MAJOR(SMFI_VERSION)

Definition at line 38 of file ze-filter-data.h.

◆ SMFI_VERSION_MINOR

#define SMFI_VERSION_MINOR   SM_LM_VRS_MINOR(SMFI_VERSION)

Definition at line 39 of file ze-filter-data.h.

◆ SMFI_VERSION_PLVL

#define SMFI_VERSION_PLVL   SM_LM_VRS_PLVL(SMFI_VERSION)

Definition at line 40 of file ze-filter-data.h.

Variable Documentation

◆ mx_check_level

int mx_check_level

Definition at line 69 of file ze-mxcheck.c.

◆ my_hostname

char my_hostname[]

Definition at line 89 of file ze-filter.c.