ze-filter  (ze-filter-0.8.0-develop-180218)
ze-dns-iprbwl.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : janvier 2002
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 
25 #ifndef __ZE_DNS_IPRBWL_H
26 
32 typedef struct
33 {
34  char line[256];
35 
36  char rbwl[64];
37 
38  char code[64];
39  char netclass[20];
40 
41  char checks[20];
42  char onmatch[20];
43 
45 
46  double odds;
47 } iprbwl_T;
48 
49 bool init_iprbwl_table();
50 
51 void dump_iprbwl_table();
52 bool load_iprbwl_table(char *cfdir, char *fname);
53 
54 uint32_t check_iprbwl_table(char *id, char *ip, char *name,
55  iprbwl_T * rbwl);
56 
57 bool check_dns_iprbwl(char *ip, char *name, char *rbwl, char *code,
58  size_t size);
59 
62 #define __ZE_DNS_IPRBWL_H
63 #endif
void dump_iprbwl_table()
bool init_iprbwl_table()
double odds
Definition: ze-dns-iprbwl.h:46
unsigned short uint16_t
Definition: ze-sys.h:485
bool check_dns_iprbwl(char *ip, char *name, char *rbwl, char *code, size_t size)
Definition: ze-dns-iprbwl.c:45
uint16_t flags
Definition: ze-dns-iprbwl.h:44
bool load_iprbwl_table(char *cfdir, char *fname)
uint32_t check_iprbwl_table(char *id, char *ip, char *name, iprbwl_T *rbwl)
long uint32_t
Definition: ze-sys.h:489