}
-// FIXME400 this function needs to go
-void simpleExpandTo(const string& label, unsigned int frompos, string& ret)
-{
- unsigned int labellen=0;
- while((labellen=(unsigned char)label.at(frompos++))) {
- ret.append(label.c_str()+frompos, labellen);
- ret.append(1,'.');
- frompos+=labellen;
- }
-}
-
/** Simple DNSPacketMangler. Ritual is: get a pointer into the packet and moveOffset() to beyond your needs
* If you survive that, feel free to read from the pointer */
class DNSPacketMangler
};
string simpleCompress(const string& label, const string& root="");
-void simpleExpandTo(const string& label, unsigned int frompos, string& ret);
void ageDNSPacket(char* packet, size_t length, uint32_t seconds);
void ageDNSPacket(std::string& packet, uint32_t seconds);
uint32_t getDNSPacketMinTTL(const char* packet, size_t length);