comparison src/dnsbl.cpp @ 389:aa9795b407e8

start parsing spf txt records
author Carl Byington <carl@five-ten-sg.com>
date Mon, 06 Mar 2017 16:55:44 -0800
parents 2354a1944e49
children bcef093b1ba6
comparison
equal deleted inserted replaced
388:2354a1944e49 389:aa9795b407e8
854 void process_resolver_requests(int socket); 854 void process_resolver_requests(int socket);
855 void process_resolver_requests(int socket) { 855 void process_resolver_requests(int socket) {
856 #ifdef NS_MAXDNAME 856 #ifdef NS_MAXDNAME
857 char question[NS_MAXDNAME]; 857 char question[NS_MAXDNAME];
858 #else 858 #else
859 char question[1000]; 859 char question[1025];
860 #endif 860 #endif
861 glommer glom; 861 glommer glom;
862 862
863 int maxq = sizeof(question); 863 int maxq = sizeof(question);
864 while (true) { 864 while (true) {
2249 close(resolver_socket); 2249 close(resolver_socket);
2250 #ifdef NS_PACKETSZ 2250 #ifdef NS_PACKETSZ
2251 res_init(); 2251 res_init();
2252 _res.retry = 2; 2252 _res.retry = 2;
2253 _res.retrans = RES_TIMEOUT; 2253 _res.retrans = RES_TIMEOUT;
2254 _res.options |= RES_USE_EDNS0;
2254 #endif 2255 #endif
2255 process_resolver_requests(s); 2256 process_resolver_requests(s);
2256 exit(0); 2257 exit(0);
2257 } 2258 }
2258 else { 2259 else {