]> granicus.if.org Git - pdns/commitdiff
Shrink DNSProxy::ConntrackEntry from 112 to 104 bytes
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 27 May 2015 11:54:05 +0000 (13:54 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 19 Jun 2015 20:51:49 +0000 (22:51 +0200)
pdns/dnsproxy.hh

index c6eda47fac08dc4647586282ceeaa73bbcf643cf..3ae652ca838961dba65c5b5d2f68e1bc64379504 100644 (file)
@@ -75,15 +75,15 @@ private:
   int getID_locked();
   struct ConntrackEntry
   {
-    uint16_t id;
-    ComboAddress remote;
-    int outsock;
     time_t created;
+    boost::optional<ComboAddress> anyLocal;
     string qname;
-    uint16_t qtype;
     DNSPacket* complete;
     string aname;
-    boost::optional<ComboAddress> anyLocal;
+    ComboAddress remote;
+    uint16_t id;
+    uint16_t qtype;
+    int outsock;
   };
 
   typedef map<int,ConntrackEntry> map_t;