]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
s/getLabel/getName/
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Wed, 13 May 2015 13:27:56 +0000 (15:27 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 29 Jun 2015 18:35:21 +0000 (20:35 +0200)
pdns/dnsparser.cc
pdns/dnsparser.hh
pdns/dnswriter.cc

index fc04d9bf65db480d1168b43b6271c92bbcd321ef..6a8c159268e343adc8b701ed2865ab8c0f6db067 100644 (file)
@@ -246,7 +246,7 @@ void MOADNSParser::init(const char *packet, unsigned int len)
     d_qtype = d_qclass = 0; // sometimes replies come in with no question, don't present garbage then
 
     for(n=0;n < d_header.qdcount; ++n) {
-      d_qname=pr.getLabel();
+      d_qname=pr.getName();
       d_qtype=pr.get16BitInt();
       d_qclass=pr.get16BitInt();
     }
@@ -266,7 +266,7 @@ void MOADNSParser::init(const char *packet, unsigned int len)
       
       unsigned int recordStartPos=pr.d_pos;
 
-      string label=pr.getLabel();
+      string label=pr.getName();
       
       pr.getDnsrecordheader(ah);
       dr.d_ttl=ah.d_ttl;
@@ -400,7 +400,7 @@ uint8_t PacketReader::get8BitInt()
   return d_content.at(d_pos++);
 }
 
-string PacketReader::getLabel()
+string PacketReader::getName()
 {
   unsigned int consumed;
   vector<uint8_t> content(d_content);
@@ -497,7 +497,7 @@ void PacketReader::xfrHexBlob(string& blob, bool keepReading)
 string simpleCompress(const string& elabel, const string& root)
 {
   string label=elabel;
-  // FIXME: this relies on the semi-canonical escaped output from getLabel
+  // FIXME: this relies on the semi-canonical escaped output from getName
   if(strchr(label.c_str(), '\\')) {
     boost::replace_all(label, "\\.", ".");
     boost::replace_all(label, "\\032", " ");
index 4a09c75f09010cb904fe5ef08bbe11694041030e..4e57b0810f6344ec18d151d43111996dca99196f 100644 (file)
@@ -121,7 +121,7 @@ public:
 
   void xfrName(string &label, bool compress=false)
   {
-    label=getLabel();
+    label=getName();
   }
 
   void xfrText(string &text, bool multi=false)
@@ -140,7 +140,7 @@ public:
   void copyRecord(vector<unsigned char>& dest, uint16_t len);
   void copyRecord(unsigned char* dest, uint16_t len);
 
-  string getLabel();
+  string getName();
   string getText(bool multi);
 
   uint16_t d_pos;
index 5286439a25890c4233abe92179efc02cd7b1fb99..81efaa14a32eff3f12730ad226eb856d4026078b 100644 (file)
@@ -249,7 +249,7 @@ void DNSPacketWriter::xfrName(const string& Label, bool compress)
     if(unescaped) {
       string part(label.c_str() + i -> first, i->second - i->first);
 
-      // FIXME: this relies on the semi-canonical escaped output from getLabel
+      // FIXME: this relies on the semi-canonical escaped output from getName
       boost::replace_all(part, "\\.", ".");
       boost::replace_all(part, "\\032", " ");
       boost::replace_all(part, "\\\\", "\\");