pw.startRecord(g_rootdnsname, QType::A, 60, QClass::IN, DNSResourceRecord::ANSWER, false);
size_t offset = pw.size();
pw.xfr16BitInt(priority);
- pw.xfrName(target, false, true);
+ pw.xfrName(target, false);
pw.xfrSvcParamKeyVals(params);
pw.commit();
val=get8BitInt();
}
- void xfrName(DNSName& name, bool /* compress */ = false, bool /* noDot */ = false)
+ void xfrName(DNSName& name, bool /* compress */ = false)
{
name = getName();
}
boilerplate_conv(SVCB,
conv.xfr16BitInt(d_priority);
- conv.xfrName(d_target, false, true);
+ conv.xfrName(d_target, false);
if (d_priority != 0) {
conv.xfrSvcParamKeyVals(d_params);
}
boilerplate_conv(HTTPS,
conv.xfr16BitInt(d_priority);
- conv.xfrName(d_target, false, true);
+ conv.xfrName(d_target, false);
if (d_priority != 0) {
conv.xfrSvcParamKeyVals(d_params);
}
return bestpos;
}
// this is the absolute hottest function in the pdns recursor
-template <typename Container> void GenericDNSPacketWriter<Container>::xfrName(const DNSName& name, bool compress, bool)
+template <typename Container> void GenericDNSPacketWriter<Container>::xfrName(const DNSName& name, bool compress)
{
if(l_verbose)
cout<<"Wants to write "<<name<<", compress="<<compress<<", canonic="<<d_canonic<<", LC="<<d_lowerCase<<endl;
void xfr8BitInt(uint8_t val);
- void xfrName(const DNSName& label, bool compress=false, bool noDot=false);
+ void xfrName(const DNSName& name, bool compress=false);
void xfrText(const string& text, bool multi=false, bool lenField=true);
void xfrUnquotedText(const string& text, bool lenField);
void xfrBlob(const string& blob, int len=-1);
}
// this code should leave all the escapes around
-void RecordTextReader::xfrName(DNSName& val, bool, bool)
+void RecordTextReader::xfrName(DNSName& val, [[maybe_unused]] bool compress)
{
skipSpaces();
DNSName sval;
}
// should not mess with the escapes
-void RecordTextWriter::xfrName(const DNSName& val, bool /* unused */, bool /* noDot */)
+void RecordTextWriter::xfrName(const DNSName& val, bool /* unused */)
{
if(!d_string.empty())
d_string.append(1,' ');
void xfrCAPort(ComboAddress &val);
void xfrTime(uint32_t& val);
- void xfrName(DNSName& val, bool compress=false, bool noDot=false);
+ void xfrName(DNSName& val, bool compress=false);
void xfrText(string& val, bool multi=false, bool lenField=true);
void xfrUnquotedText(string& val, bool lenField=true);
void xfrHexBlob(string& val, bool keepReading=false);
void xfrBase32HexBlob(const string& val);
void xfrType(const uint16_t& val);
- void xfrName(const DNSName& val, bool compress=false, bool noDot=false);
+ void xfrName(const DNSName& val, bool compress=false);
void xfrText(const string& val, bool multi=false, bool lenField=true);
void xfrUnquotedText(const string& val, bool lenField=true);
void xfrBlobNoSpaces(const string& val, int len=-1);