fd = SSocket(remote.sin4.sin_family, SOCK_DGRAM, 0);
SConnect(fd, remote);
-
idStates.resize(g_maxOutstanding);
sw.start();
infolog("Added downstream server %s", remote.toStringWithPort());
("command,c", po::value<string>(), "Execute this command on a running dnsdist")
("daemon", po::value<bool>()->default_value(true), "run in background")
("local", po::value<vector<string> >(), "Listen on which addresses")
- ("max-outstanding", po::value<uint16_t>()->default_value(65535), "maximum outstanding queries per downstream")
+ ("max-outstanding", po::value<uint16_t>()->default_value(1024), "maximum outstanding queries per downstream")
("regex-drop", po::value<string>(), "If set, block queries matching this regex. Mind trailing dot!")
("verbose,v", "be verbose");
age.store(orig.age.load());
}
- int origFD; // set to <0 to indicate this state is empty
- uint16_t origID;
- ComboAddress origRemote;
- StopWatch sentTime;
- DNSName qname;
- uint16_t qtype;
- std::atomic<uint64_t> age;
+ int origFD; // set to <0 to indicate this state is empty // 4
+
+ ComboAddress origRemote; // 28
+ StopWatch sentTime; // 16
+ DNSName qname; // 80
+ std::atomic<uint16_t> age; // 4
+ uint16_t qtype; // 2
+ uint16_t origID; // 2
};
struct Rings {