Changeset 1094
- Timestamp:
- 10/28/07 18:36:16 (2 years ago)
- Location:
- trunk/pdns
- Files:
-
- 9 modified
-
modules/ldapbackend/powerldap.cc (modified) (1 diff)
-
pdns/Makefile.am (modified) (1 diff)
-
pdns/distributor.hh (modified) (1 diff)
-
pdns/dns.hh (modified) (2 diffs)
-
pdns/dynmessenger.cc (modified) (1 diff)
-
pdns/misc.hh (modified) (2 diffs)
-
pdns/pdns_recursor.cc (modified) (1 diff)
-
pdns/resolver.cc (modified) (1 diff)
-
pdns/sstuff.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/modules/ldapbackend/powerldap.cc
r1069 r1094 1 1 #include "powerldap.hh" 2 2 // for timeval 3 #include <sys/time.h> 3 4 4 5 -
trunk/pdns/pdns/Makefile.am
r1086 r1094 70 70 unix_utility.cc utility.hh 71 71 72 #socketbench_SOURCES=socketbench.cc qtype.cc misc.cc unix_utility.cc\ 73 # logger.cc statbag.cc epollmplexer.cc 72 74 73 75 dnsreplay_SOURCES=dnsreplay.cc misc.cc qtype.cc anadns.hh \ -
trunk/pdns/pdns/distributor.hh
r987 r1094 83 83 { 84 84 Question *Q; 85 time_t created;86 85 void (*callback)(const AnswerData &); 87 86 int id; -
trunk/pdns/pdns/dns.hh
r965 r1094 116 116 #endif 117 117 118 typedefenum {118 enum { 119 119 ns_t_invalid = 0, /* Cookie. */ 120 120 ns_t_a = 1, /* Host address. */ … … 138 138 ns_t_x25 = 19, /* X_25 calling address. */ 139 139 ns_t_isdn = 20, /* ISDN calling address. */ 140 ns_t_rt = 21, /* Router. */140 ns_t_rt = 21, /* Router. */ 141 141 ns_t_nsap = 22, /* NSAP address. */ 142 142 ns_t_nsap_ptr = 23, /* Reverse NSAP lookup (deprecated). */ -
trunk/pdns/pdns/dynmessenger.cc
r681 r1094 19 19 #include "dynmessenger.hh" 20 20 #include <cstdio> 21 #include <cstdlib> 21 22 #include <cstring> 22 23 #include <cerrno> -
trunk/pdns/pdns/misc.hh
r1021 r1094 20 20 #define MISC_HH 21 21 #include <stdint.h> 22 #include <cstring> 22 23 23 24 #if 0 … … 235 236 } 236 237 237 inline c onst char dns_tolower(char c)238 inline char dns_tolower(char c) 238 239 { 239 240 if(c>='A' && c<='Z') -
trunk/pdns/pdns/pdns_recursor.cc
r1073 r1094 417 417 418 418 if(::arg()["hint-file"].empty()) { 419 static c har*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53",419 static const char*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53", 420 420 "192.36.148.17","192.58.128.30", "193.0.14.129", "198.32.64.12", "202.12.27.33"}; 421 421 DNSResourceRecord arr, nsrr; -
trunk/pdns/pdns/resolver.cc
r1026 r1094 398 398 throw ResolverException("Remote nameserver replied with wrong id"); 399 399 } 400 if(mdp->d_header.rcode) 400 if(mdp->d_header.rcode) { 401 401 if(d_inaxfr) 402 402 throw ResolverException("Remote nameserver unable/unwilling to AXFR with us: RCODE="+itoa(mdp->d_header.rcode)); 403 403 else 404 404 throw ResolverException("Remote nameserver reported error: RCODE="+itoa(mdp->d_header.rcode)); 405 405 } 406 406 if(!d_inaxfr) { 407 407 if(mdp->d_header.qdcount!=1) -
trunk/pdns/pdns/sstuff.hh
r964 r1094 190 190 socklen_t remlen=sizeof(remote); 191 191 int bytes; 192 if((bytes=recvfrom(d_socket, d_buffer, d_buflen, 0, (sockaddr *)&remote, &remlen))<0) 193 if(errno!=EAGAIN) 192 if((bytes=recvfrom(d_socket, d_buffer, d_buflen, 0, (sockaddr *)&remote, &remlen))<0) { 193 if(errno!=EAGAIN) { 194 194 throw NetworkError(strerror(errno)); 195 else 195 } 196 else { 196 197 return false; 197 198 } 199 } 198 200 dgram.assign(d_buffer,bytes); 199 201 ep.address.byte=remote.sin_addr.s_addr;