setQuestion(domain, qtype, qclass);
}
+void DNSProtoBufMessage::copyFrom(const DNSProtoBufMessage& msg)
+{
+ d_message.CopyFrom(msg.d_message);
+}
+
#endif /* HAVE_PROTOBUF */
void update(const boost::uuids::uuid& uuid, const ComboAddress* requestor, const ComboAddress* responder, bool isTCP, uint16_t id);
void setUUID(const boost::uuids::uuid& uuid);
void setInitialRequestID(const boost::uuids::uuid& uuid);
+ void copyFrom(const DNSProtoBufMessage& msg);
protected:
PBDNSMessage d_message;
#ifdef HAVE_PROTOBUF
if (protobufMessage) {
if (iter->d_protobufMessage) {
- *protobufMessage = *(iter->d_protobufMessage);
+ protobufMessage->copyFrom(*(iter->d_protobufMessage));
}
else {
*protobufMessage = RecProtoBufMessage(DNSProtoBufMessage::DNSProtoBufMessageType::Response);