return d_remote.sin4.sin_port;
}
-DNSPacket::DNSPacket(const DNSPacket &orig) :
- d_anyLocal(orig.d_anyLocal),
- d_dt(orig.d_dt),
- qdomain(orig.qdomain),
- qdomainwild(orig.qdomainwild),
- qdomainzone(orig.qdomainzone),
-
- d(orig.d),
- d_trc(orig.d_trc),
- d_remote(orig.d_remote),
- d_tsig_algo(orig.d_tsig_algo),
-
- d_ednsRawPacketSizeLimit(orig.d_ednsRawPacketSizeLimit),
- qclass(orig.qclass),
- qtype(orig.qtype),
- d_tcp(orig.d_tcp),
- d_dnssecOk(orig.d_dnssecOk),
- d_havetsig(orig.d_havetsig),
-
- d_tsigsecret(orig.d_tsigsecret),
- d_tsigkeyname(orig.d_tsigkeyname),
- d_tsigprevious(orig.d_tsigprevious),
- d_rrs(orig.d_rrs),
- d_rawpacket(orig.d_rawpacket),
- d_eso(orig.d_eso),
- d_maxreplylen(orig.d_maxreplylen),
- d_socket(orig.d_socket),
- d_hash(orig.d_hash),
- d_ednsrcode(orig.d_ednsrcode),
- d_ednsversion(orig.d_ednsversion),
-
- d_wrapped(orig.d_wrapped),
- d_compress(orig.d_compress),
- d_tsigtimersonly(orig.d_tsigtimersonly),
- d_wantsnsid(orig.d_wantsnsid),
- d_haveednssubnet(orig.d_haveednssubnet),
- d_haveednssection(orig.d_haveednssection),
-
- d_isQuery(orig.d_isQuery)
-{
- DLOG(g_log<<"DNSPacket copy constructor called!"<<endl);
-}
-
void DNSPacket::setRcode(int v)
{
d.rcode=v;
{
public:
DNSPacket(bool isQuery);
- DNSPacket(const DNSPacket &orig);
+ DNSPacket(const DNSPacket &orig) = default;
+ DNSPacket & operator=(const DNSPacket &) = default;
int noparse(const char *mesg, size_t len); //!< just suck the data inward
int parse(const char *mesg, size_t len); //!< parse a raw UDP or TCP packet and suck the data inward
{
public:
DTime(); //!< Does not set the timer for you! Saves lots of gettimeofday() calls
- DTime(const DTime &dt);
+ DTime(const DTime &dt) = default;
+ DTime & operator=(const DTime &dt) = default;
time_t time();
inline void set(); //!< Reset the timer
inline int udiff(); //!< Return the number of microseconds since the timer was last set.
ResolveContext()
{
}
- ResolveContext(const ResolveContext& ctx)
- {
-#ifdef HAVE_PROTOBUF
- this->d_initialRequestId = ctx.d_initialRequestId;
-#endif
-#ifdef HAVE_FSTRM
- this->d_auth = ctx.d_auth;
-#endif
- }
+
+ ResolveContext(const ResolveContext& ctx) = delete;
+ ResolveContext & operator=(const ResolveContext&) = delete;
+
#ifdef HAVE_PROTOBUF
boost::optional<const boost::uuids::uuid&> d_initialRequestId;
#endif
d_lastget=d_last;
}
- DecayingEwma(const DecayingEwma& orig) : d_last(orig.d_last), d_lastget(orig.d_lastget), d_val(orig.d_val), d_needinit(orig.d_needinit)
- {
- }
-
+ DecayingEwma(const DecayingEwma& orig) = delete;
+ DecayingEwma & operator=(const DecayingEwma& orig) = delete;
+
void submit(int val, const struct timeval* tv)
{
struct timeval now=*tv;