~ubuntu-branches/ubuntu/hardy/pdns-recursor/hardy-backports

« back to all changes in this revision

Viewing changes to qtype.hh

  • Committer: Package Import Robot
  • Author(s): Evan Broder
  • Date: 2011-11-10 23:47:14 UTC
  • mfrom: (4.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20111110234714-m2j0m9va5h7oa99i
Tags: 3.3-2~hardy1
* Backport to hardy:
  - Use source format 1.0, and use the old quilt makefile include (Hardy
    predates dh_quilt_patch and the quilt sequence)
  - Drop debhelper build-dependency version
  - Replace override_% syntax with old-style dh --before and dh --after
    syntax

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef QTYPE_HH
20
20
#define QTYPE_HH
21
21
/* (C) 2002 POWERDNS.COM BV */
22
 
// $Id: qtype.hh 705 2006-04-15 22:19:33Z ahu $
 
22
// $Id: qtype.hh 1709 2010-09-11 10:13:25Z ahu $
23
23
#include <string>
24
24
#include <vector>
25
25
#include <utility>
71
71
  int getCode() const; //!< Get the integer representation of this type
72
72
 
73
73
  static int chartocode(const char *p); //!< convert a character string to a code
74
 
  
75
 
  enum typeenum {A=1,NS=2,CNAME=5,SOA=6,PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AAAA=28,LOC=29,SRV=33,NAPTR=35, SPF=99, AXFR=252, IXFR=254, ANY=255} types;
 
74
// more solaris fun
 
75
#undef DS   
 
76
  enum typeenum {A=1,NS=2,CNAME=5,SOA=6, MR=9, PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AFSDB=18,KEY=25,AAAA=28,LOC=29,SRV=33,NAPTR=35, KX=36, 
 
77
                 CERT=37,OPT=41, DS=43, SSHDP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, NSEC3=50, NSEC3PARAM=51,
 
78
                 SPF=99, TSIG=250, AXFR=252, IXFR=251, ANY=255, URL=256, MBOXFW=257, CURL=258, ADDR=259} types;
 
79
  typedef pair<string,int> namenum; 
 
80
  static vector<namenum> names;
76
81
private:
77
82
  short int code;
78
 
  typedef pair<string,int> namenum; 
79
 
  void insert(char *p, int n);
80
 
 
81
 
  static vector<namenum> names;
 
83
  void insert(const char *p, int n);
 
84
 
 
85
 
82
86
  static bool uninit;
83
87
};
84
88
 
85
 
 
 
89
struct QClass
 
90
{
 
91
        enum QClassEnum {IN=1, CHAOS=3};
 
92
};
86
93
#endif