From: Pieter Lexis Date: Wed, 27 May 2015 11:54:46 +0000 (+0200) Subject: Shrink DNSProxy from 152 to 144 bytes X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~77^2~4^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=083109a4cf869c281c7ba5cd5a2faa8267b411ce;p=thirdparty%2Fpdns.git Shrink DNSProxy from 152 to 144 bytes --- diff --git a/pdns/dnsproxy.hh b/pdns/dnsproxy.hh index 3ae652ca83..c4bf4baf33 100644 --- a/pdns/dnsproxy.hh +++ b/pdns/dnsproxy.hh @@ -65,14 +65,6 @@ public: } bool recurseFor(DNSPacket* p); private: - NetmaskGroup d_ng; - int d_sock; - AtomicCounter* d_resanswers; - AtomicCounter* d_udpanswers; - AtomicCounter* d_resquestions; - pthread_mutex_t d_lock; - uint16_t d_xor; - int getID_locked(); struct ConntrackEntry { time_t created; @@ -87,7 +79,17 @@ private: }; typedef map map_t; + + // Data + NetmaskGroup d_ng; + AtomicCounter* d_resanswers; + AtomicCounter* d_udpanswers; + AtomicCounter* d_resquestions; + pthread_mutex_t d_lock; map_t d_conntrack; + int d_sock; + int getID_locked(); + uint16_t d_xor; }; #endif