~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/dns.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2009-09-24 14:51:06 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090924145106-38jgrzmj0d73pha5
Tags: 3.1.0.13-1
* Upload to experimental

* New upstream release
  - Fixes Follow-X-Forwarded-For support (Closes: #523943)
  - Adds IPv6 support (Closes: #432351)

* debian/rules
  - Removed obsolete configuration options
  - Enable db and radius basic authentication modules

* debian/patches/01-cf.data.debian
  - Adapted to new upstream version

* debian/patches/02-makefile-defaults
  - Adapted to new upstream version

* debian/{squid.postinst,squid.rc,README.Debian,watch}
  - Updated references to squid 3.1

* debian/squid3.install
  - Install CSS file for error pages
  - Install manual pages for new authentication modules

* debian/squid3-common.install
  - Install documented version of configuration file in /usr/share/doc/squid3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: dns.cc,v 1.100 2007/04/28 22:26:37 hno Exp $
 
3
 * $Id$
4
4
 *
5
5
 * DEBUG: section 34    Dnsserver interface
6
6
 * AUTHOR: Harvest Derived
21
21
 *  it under the terms of the GNU General Public License as published by
22
22
 *  the Free Software Foundation; either version 2 of the License, or
23
23
 *  (at your option) any later version.
24
 
 *  
 
24
 *
25
25
 *  This program is distributed in the hope that it will be useful,
26
26
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
27
27
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
28
 *  GNU General Public License for more details.
29
 
 *  
 
29
 *
30
30
 *  You should have received a copy of the GNU General Public License
31
31
 *  along with this program; if not, write to the Free Software
32
32
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
55
55
    helperStats(sentry, dnsservers);
56
56
}
57
57
 
 
58
static void
 
59
dnsRegisterWithCacheManager(void)
 
60
{
 
61
    CacheManager::GetInstance()->
 
62
    registerAction("dns", "Dnsserver Statistics", dnsStats, 0, 1);
 
63
}
 
64
 
58
65
void
59
66
dnsInit(void)
60
67
{
61
68
    wordlist *w;
62
69
 
 
70
    dnsRegisterWithCacheManager();
 
71
 
63
72
    if (!Config.Program.dnsserver)
64
73
        return;
65
74
 
86
95
}
87
96
 
88
97
void
89
 
dnsRegisterWithCacheManager(CacheManager & manager)
90
 
{
91
 
    manager.registerAction("dns",
92
 
                           "Dnsserver Statistics",
93
 
                           dnsStats, 0, 1);
94
 
}
95
 
 
96
 
void
97
98
dnsShutdown(void)
98
99
{
99
100
    if (!dnsservers)