Mercurial > dnsbl
comparison src/dnsbl.h @ 252:836b7f2357f9
need ntohl() before using masks that are defined in host byte order
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 08 Apr 2012 16:10:31 -0700 |
parents | 15bf4f68a0b2 |
children | d11b529ce9c5 |
comparison
equal
deleted
inserted
replaced
251:0a2b842c07cd | 252:836b7f2357f9 |
---|---|
10 #define dnsbl_include | 10 #define dnsbl_include |
11 | 11 |
12 #include "context.h" | 12 #include "context.h" |
13 #include "spamass.h" | 13 #include "spamass.h" |
14 #include "dccifd.h" | 14 #include "dccifd.h" |
15 #include <stdint.h> | |
15 | 16 |
16 extern int debug_syslog; | 17 extern int debug_syslog; |
17 #define dccbulk 1000 | 18 #define dccbulk 1000 |
18 | 19 |
19 class recorder; | 20 class recorder; |
29 bool eom; // are we in eom function, so progress function can be called? | 30 bool eom; // are we in eom function, so progress function can be called? |
30 // connection specific data | 31 // connection specific data |
31 CONFIG *pc; // global filtering configuration | 32 CONFIG *pc; // global filtering configuration |
32 int fd; // to talk to dns resolver process | 33 int fd; // to talk to dns resolver process |
33 bool err; // did we get any errors on the resolver socket? | 34 bool err; // did we get any errors on the resolver socket? |
34 int32_t ip; // ip4 address of the smtp client | 35 uint32_t ip; // ip4 address of the smtp client in network order |
35 const char *helo; // helo from client | 36 const char *helo; // helo from client |
36 map<DNSBLP, bool> checked_black; // map of dnsblp to result of (ip listed on that dnsbl) | 37 map<DNSBLP, bool> checked_black; // map of dnsblp to result of (ip listed on that dnsbl) |
37 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl) | 38 map<DNSWLP, bool> checked_white; // map of dnswlp to result of (ip listed on that dnswl) |
38 // message specific data | 39 // message specific data |
39 const char *mailaddr; // envelope from value | 40 const char *mailaddr; // envelope from value |