|
@@ -1,52 +0,0 @@
|
|
|
-// Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC")
|
|
|
-//
|
|
|
-// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
-// purpose with or without fee is hereby granted, provided that the above
|
|
|
-// copyright notice and this permission notice appear in all copies.
|
|
|
-//
|
|
|
-// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
|
|
-// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
-// AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
-// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
-// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
|
|
-// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
-// PERFORMANCE OF THIS SOFTWARE.
|
|
|
-
|
|
|
-#include <config.h>
|
|
|
-
|
|
|
-#include <cstdlib> // For rand(), temporary until better forwarding is done
|
|
|
-
|
|
|
-#include <unistd.h> // for some IPC/network system calls
|
|
|
-#include <sys/socket.h>
|
|
|
-#include <netinet/in.h>
|
|
|
-
|
|
|
-#include <vector>
|
|
|
-#include <asio.hpp>
|
|
|
-#include <boost/lexical_cast.hpp>
|
|
|
-#include <boost/bind.hpp>
|
|
|
-#include <boost/date_time/posix_time/posix_time_types.hpp>
|
|
|
-
|
|
|
-#include <boost/shared_ptr.hpp>
|
|
|
-
|
|
|
-#include <dns/buffer.h>
|
|
|
-#include <dns/message.h>
|
|
|
-#include <dns/rcode.h>
|
|
|
-#include <dns/opcode.h>
|
|
|
-
|
|
|
-#include <asiolink/asiolink.h>
|
|
|
-#include <asiolink/internal/tcpdns.h>
|
|
|
-#include <asiolink/internal/udpdns.h>
|
|
|
-
|
|
|
-#include <resolve/resolve.h>
|
|
|
-
|
|
|
-#include <log/dummylog.h>
|
|
|
-
|
|
|
-using namespace asio;
|
|
|
-using asio::ip::udp;
|
|
|
-using asio::ip::tcp;
|
|
|
-
|
|
|
-using namespace std;
|
|
|
-using namespace isc::dns;
|
|
|
-using isc::log::dlog;
|
|
|
-using namespace boost;
|
|
|
-
|