~ubuntu-branches/ubuntu/karmic/pdnsd/karmic

« back to all changes in this revision

Viewing changes to src/consts.c

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2008-10-05 09:54:52 UTC
  • mfrom: (4.1.4 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081005095452-wc58cmdofvyipcv3
Tags: 1.2.6-par-10
* Add patches/0005-fix-for-CVE-2008-4194.patch for CVE-2008-4194.
  (Closes: #500910).
* Document where the two default configuration are in README.Debian
  (Closes: #499984).
* Update turkish translation thanks to Mert Dirik (Closes: #490047).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* consts.c - Common config constants & handling
2
2
 
3
3
   Copyright (C) 2000, 2001 Thomas Moestl
4
 
   Copyright (C) 2002, 2003, 2005 Paul A. Rombouts
5
 
 
6
 
This file is part of the pdnsd package.
7
 
 
8
 
pdnsd is free software; you can redistribute it and/or modify
9
 
it under the terms of the GNU General Public License as published by
10
 
the Free Software Foundation; either version 2, or (at your option)
11
 
any later version.
12
 
 
13
 
pdnsd is distributed in the hope that it will be useful,
14
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
GNU General Public License for more details.
17
 
 
18
 
You should have received a copy of the GNU General Public License
19
 
along with pdsnd; see the file COPYING.  If not, write to
20
 
the Free Software Foundation, 59 Temple Place - Suite 330,
21
 
Boston, MA 02111-1307, USA.  */
 
4
   Copyright (C) 2002, 2003, 2005, 2006, 2007 Paul A. Rombouts
 
5
 
 
6
  This file is part of the pdnsd package.
 
7
 
 
8
  pdnsd is free software; you can redistribute it and/or modify
 
9
  it under the terms of the GNU General Public License as published by
 
10
  the Free Software Foundation; either version 3 of the License, or
 
11
  (at your option) any later version.
 
12
 
 
13
  pdnsd is distributed in the hope that it will be useful,
 
14
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
  GNU General Public License for more details.
 
17
 
 
18
  You should have received a copy of the GNU General Public License
 
19
  along with pdnsd; see the file COPYING. If not, see
 
20
  <http://www.gnu.org/licenses/>.
 
21
*/
22
22
 
23
23
#include <config.h>
24
24
#include <stdlib.h>
38
38
        {"domain",      C_DOMAIN},
39
39
        {"excluded",    C_EXCLUDED},
40
40
        {"exec",        C_EXEC},
 
41
        {"fail",        C_FAIL},
41
42
        {"false",       C_OFF},
42
43
        {"fqdn_only",   C_FQDN_ONLY},
43
44
        {"if",          C_IF},
44
45
        {"included",    C_INCLUDED},
 
46
        {"negate",      C_NEGATE},
45
47
        {"no",          C_OFF},
46
48
        {"none",        C_NONE},
47
49
        {"off",         C_OFF},
55
57
        {"tcp_udp",     TCP_UDP},
56
58
        {"true",        C_ON},
57
59
        {"udp_only",    UDP_ONLY},
 
60
        {"udp_tcp",     UDP_TCP},
58
61
        {"yes",         C_ON}
59
62
};
60
63
 
73
76
        "udp_only",
74
77
        "tcp_only",
75
78
        "tcp_udp",
 
79
        "udp_tcp",
76
80
        "dev",
77
81
        "diald",
78
82
        "included",
80
84
        "simple_only",
81
85
        "fqdn_only",
82
86
        "auth",
83
 
        "domain"
 
87
        "domain",
 
88
        "fail",
 
89
        "negate"
84
90
};
85
91
 
86
92
/* compare two strings.