ze-filter  (ze-filter-0.8.0-develop-180218)
zePolicy.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 : Mon Jun 16 08:45:55 CEST 2014
12  *
13  * This program is free software - GPL v2.,
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18  *
19  */
20 
21 
22 #ifndef __ZE_POLICY_H
23 
29 bool PolicyLookupFrom(char *prefix, char *from,
30  char *class, char *buf, size_t size,
31  bool cdef);
32 
33 bool PolicyLookupDomain(char *prefix, char *key, char *buf,
34  size_t size);
35 
36 bool PolicyLookupIPv4Addr(char *prefix, char *key, char *buf,
37  size_t size);
38 
39 bool PolicyLookupIPv6Addr(char *prefix, char *key, char *buf,
40  size_t size);
41 
42 bool PolicyLookupNetClass(char *addr, char *name,
43  netclass_T * class, char *buf,
44  size_t size);
45 
46 bool PolicyLookupEmailAddr(char *prefix, char *key, char *buf,
47  size_t size);
48 
49 bool PolicyLookupClient(char *prefix, char *addr, char *name,
50  netclass_T * netClass,
51  char *buf, size_t size);
52 
53 bool PolicyLookupTuple(char *prefix, char *ip, char *name,
54  char *netclass,
55  char *from, char *to, bool result);
56 
59 # define __ZE_POLICY_H 1
60 #endif /* __ZE_POLICY_H */
bool PolicyLookupIPv6Addr(char *prefix, char *key, char *buf, size_t size)
Definition: zePolicy.c:201
bool PolicyLookupEmailAddr(char *prefix, char *key, char *buf, size_t size)
Definition: zePolicy.c:230
bool PolicyLookupFrom(char *prefix, char *from, char *class, char *buf, size_t size, bool cdef)
bool PolicyLookupDomain(char *prefix, char *key, char *buf, size_t size)
Definition: zePolicy.c:173
bool PolicyLookupNetClass(char *addr, char *name, netclass_T *class, char *buf, size_t size)
Definition: zePolicy.c:215
bool PolicyLookupIPv4Addr(char *prefix, char *key, char *buf, size_t size)
Definition: zePolicy.c:187
bool PolicyLookupClient(char *prefix, char *addr, char *name, netclass_T *netClass, char *buf, size_t size)
Definition: zePolicy.c:86
bool PolicyLookupTuple(char *prefix, char *ip, char *name, char *netclass, char *from, char *to, bool result)
Definition: zePolicy.c:244