/*
PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 PowerDNS.COM BV
+ Copyright (C) 2002 - 2006 PowerDNS.COM BV
This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ it under the terms of the GNU General Public License version 2 as published
+ by the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
#include "arguments.hh"
-
-
const ArgvMap::param_t::const_iterator ArgvMap::begin()
{
return params.begin();
{
parse(argc,argv,true);
}
- void ArgvMap::preParse(int &argc, char **argv, const string &arg); //!< use this to preparse a single var
- bool ArgvMap::preParseFile(const char *fname, const string &arg); //!< use this to preparse a single var in configuration
+ void preParse(int &argc, char **argv, const string &arg); //!< use this to preparse a single var
+ bool preParseFile(const char *fname, const string &arg); //!< use this to preparse a single var in configuration
bool file(const char *fname, bool lax=false); //!< Parses a file with parameters
bool laxFile(const char *fname)
public:
PacketCache();
void insert(DNSPacket *q, DNSPacket *r); //!< We copy the contents of *p into our cache. Do not needlessly call this to insert questions already in the cache as it wastes resources
- void PacketCache::insert(const char *packet, int length);
+ void insert(const char *packet, int length);
inline int get(DNSPacket *p, DNSPacket *q); //!< We return a dynamically allocated copy out of our cache. You need to delete it. You also need to spoof in the right ID with the DNSPacket.spoofID() method.
bool getKey(const string &key, string &content);
private:
int processNotify(DNSPacket *);
void addRootReferral(DNSPacket *r);
- int PacketHandler::trySuperMaster(DNSPacket *p);
+ int trySuperMaster(DNSPacket *p);
int makeCanonic(DNSPacket *p, DNSPacket *r, string &target);
int doWildcardRecords(DNSPacket *p, DNSPacket *r, string &target);
int findMboxFW(DNSPacket *p, DNSPacket *r, string &target);
/*
PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2002 - 2005 PowerDNS.COM BV
+ Copyright (C) 2002 - 2006 PowerDNS.COM BV
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
declareStats();
DLOG(L<<Logger::Warning<<"Verbose logging in effect"<<endl);
- L<<Logger::Warning<<"PowerDNS "<<VERSION<<" (C) 2001-2005 PowerDNS.COM BV ("<<__DATE__", "__TIME__;
+ L<<Logger::Warning<<"PowerDNS "<<VERSION<<" (C) 2001-2006 PowerDNS.COM BV ("<<__DATE__", "__TIME__;
#ifdef __GNUC__
L<<", gcc "__VERSION__;
#endif // add other compilers here
static DNSBackend *maker(const map<string,string> &);
static void closeDynListener();
- static void UeberBackend::setStatus(const string &st);
+ static void setStatus(const string &st);
void getUnfreshSlaveInfos(vector<DomainInfo>* domains);
void getUpdatedMasters(vector<DomainInfo>* domains);
bool getDomainInfo(const string &domain, DomainInfo &di);