"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "syncres.hh" between
pdns-recursor-4.5.5.tar.bz2 and pdns-recursor-4.5.6.tar.bz2

About: PowerDNS - a separate release of the PowerDNS Recursor (without the authoritative nameserver).

syncres.hh  (pdns-recursor-4.5.5.tar.bz2):syncres.hh  (pdns-recursor-4.5.6.tar.bz2)
skipping to change at line 976 skipping to change at line 976
bool operator<(const PacketID& b) const bool operator<(const PacketID& b) const
{ {
int ourSock= sock ? sock->getHandle() : 0; int ourSock= sock ? sock->getHandle() : 0;
int bSock = b.sock ? b.sock->getHandle() : 0; int bSock = b.sock ? b.sock->getHandle() : 0;
if( tie(remote, ourSock, type) < tie(b.remote, bSock, b.type)) if( tie(remote, ourSock, type) < tie(b.remote, bSock, b.type))
return true; return true;
if( tie(remote, ourSock, type) > tie(b.remote, bSock, b.type)) if( tie(remote, ourSock, type) > tie(b.remote, bSock, b.type))
return false; return false;
return tie(fd, id, domain) < tie(b.fd, b.id, b.domain); return tie(domain, fd, id) < tie(b.domain, b.fd, b.id);
} }
}; };
struct PacketIDBirthdayCompare: public std::binary_function<PacketID, PacketID, bool> struct PacketIDBirthdayCompare: public std::binary_function<PacketID, PacketID, bool>
{ {
bool operator()(const PacketID& a, const PacketID& b) const bool operator()(const PacketID& a, const PacketID& b) const
{ {
int ourSock= a.sock ? a.sock->getHandle() : 0; int ourSock= a.sock ? a.sock->getHandle() : 0;
int bSock = b.sock ? b.sock->getHandle() : 0; int bSock = b.sock ? b.sock->getHandle() : 0;
if( tie(a.remote, ourSock, a.type) < tie(b.remote, bSock, b.type)) if( tie(a.remote, ourSock, a.type) < tie(b.remote, bSock, b.type))
skipping to change at line 1131 skipping to change at line 1131
extern unsigned int g_numThreads; extern unsigned int g_numThreads;
extern uint16_t g_outgoingEDNSBufsize; extern uint16_t g_outgoingEDNSBufsize;
extern std::atomic<uint32_t> g_maxCacheEntries, g_maxPacketCacheEntries; extern std::atomic<uint32_t> g_maxCacheEntries, g_maxPacketCacheEntries;
extern bool g_lowercaseOutgoing; extern bool g_lowercaseOutgoing;
std::string reloadAuthAndForwards(); std::string reloadAuthAndForwards();
typedef boost::function<void*(void)> pipefunc_t; typedef boost::function<void*(void)> pipefunc_t;
void broadcastFunction(const pipefunc_t& func); void broadcastFunction(const pipefunc_t& func);
void distributeAsyncFunction(const std::string& question, const pipefunc_t& func ); void distributeAsyncFunction(const std::string& question, const pipefunc_t& func );
int directResolve(const DNSName& qname, const QType qtype, int qclass, vector<DN int directResolve(const DNSName& qname, const QType qtype, int qclass, vector<DN
SRecord>& ret); SRecord>& ret, shared_ptr<RecursorLua4> pdl);
int directResolve(const DNSName& qname, const QType qtype, int qclass, vector<DN int directResolve(const DNSName& qname, const QType qtype, int qclass, vector<DN
SRecord>& ret, bool qm); SRecord>& ret, shared_ptr<RecursorLua4> pdl, bool qm);
int followCNAMERecords(std::vector<DNSRecord>& ret, const QType qtype, int oldre t); int followCNAMERecords(std::vector<DNSRecord>& ret, const QType qtype, int oldre t);
int getFakeAAAARecords(const DNSName& qname, ComboAddress prefix, vector<DNSReco rd>& ret); int getFakeAAAARecords(const DNSName& qname, ComboAddress prefix, vector<DNSReco rd>& ret);
int getFakePTRRecords(const DNSName& qname, vector<DNSRecord>& ret); int getFakePTRRecords(const DNSName& qname, vector<DNSRecord>& ret);
template<class T> T broadcastAccFunction(const boost::function<T*()>& func); template<class T> T broadcastAccFunction(const boost::function<T*()>& func);
std::shared_ptr<SyncRes::domainmap_t> parseAuthAndForwards(); std::shared_ptr<SyncRes::domainmap_t> parseAuthAndForwards();
uint64_t* pleaseGetNsSpeedsSize(); uint64_t* pleaseGetNsSpeedsSize();
uint64_t* pleaseGetFailedServersSize(); uint64_t* pleaseGetFailedServersSize();
uint64_t* pleaseGetEDNSStatusesSize(); uint64_t* pleaseGetEDNSStatusesSize();
 End of changes. 2 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)