Also fix some issues from the review.
#include <config.h>
-#include <cassert>
-#include <iostream>
-
#include <asiolink/asiolink.h>
#include <cc/data.h>
#include <cc/session.h>
-#include <cc/session.h>
#include <config/ccsession.h>
+#include <dhcp/iface_mgr.h>
#include <dhcp4/ctrl_dhcp4_srv.h>
#include <dhcp4/dhcp4_log.h>
#include <dhcp4/spec_config.h>
-#include <dhcp/iface_mgr.h>
#include <exceptions/exceptions.h>
#include <util/buffer.h>
+#include <cassert>
+#include <iostream>
+
using namespace isc::asiolink;
using namespace isc::cc;
using namespace isc::config;
#ifndef CTRL_DHCPV4_SRV_H
#define CTRL_DHCPV4_SRV_H
-#include <dhcp4/dhcp4_srv.h>
#include <asiolink/asiolink.h>
+#include <cc/data.h>
#include <cc/session.h>
#include <config/ccsession.h>
-#include <cc/data.h>
+#include <dhcp4/dhcp4_srv.h>
namespace isc {
namespace dhcp {
/// Defines the logger used by the top-level component of b10-dhcp4.
-#include "dhcp4_log.h"
+#include <dhcp4/dhcp4_log.h>
namespace isc {
namespace dhcp {
#ifndef DHCP4_LOG_H
#define DHCP4_LOG_H
-#include <log/macros.h>
#include <log/logger_support.h>
+#include <log/macros.h>
#include <dhcp4/dhcp4_messages.h>
namespace isc {
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
+#include <asiolink/io_address.h>
#include <dhcp/dhcp4.h>
-#include <dhcp/pkt4.h>
#include <dhcp/iface_mgr.h>
-#include <dhcp4/dhcp4_srv.h>
-#include <dhcp4/dhcp4_log.h>
-#include <asiolink/io_address.h>
#include <dhcp/option4_addrlst.h>
+#include <dhcp/pkt4.h>
+#include <dhcp4/dhcp4_log.h>
+#include <dhcp4/dhcp4_srv.h>
using namespace isc;
using namespace isc::asiolink;
#ifndef DHCPV4_SRV_H
#define DHCPV4_SRV_H
-#include <boost/noncopyable.hpp>
#include <dhcp/dhcp4.h>
#include <dhcp/pkt4.h>
#include <dhcp/option.h>
+
+#include <boost/noncopyable.hpp>
+
#include <iostream>
namespace isc {
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-
-#include <boost/lexical_cast.hpp>
#include <dhcp4/ctrl_dhcp4_srv.h>
#include <dhcp4/dhcp4_log.h>
#include <log/logger_support.h>
+#include <boost/lexical_cast.hpp>
+
+#include <iostream>
+
using namespace isc::dhcp;
using namespace std;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
+
+#include <config/ccsession.h>
+#include <dhcp/dhcp4.h>
+#include <dhcp4/ctrl_dhcp4_srv.h>
+
+#include <gtest/gtest.h>
+
#include <fstream>
+#include <iostream>
#include <sstream>
#include <arpa/inet.h>
-#include <gtest/gtest.h>
-
-#include <dhcp/dhcp4.h>
-#include <dhcp4/ctrl_dhcp4_srv.h>
-#include <config/ccsession.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <fstream>
#include <sstream>
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
-
+#include <asiolink/io_address.h>
#include <dhcp/dhcp4.h>
-#include <dhcp4/dhcp4_srv.h>
#include <dhcp/option.h>
-#include <asiolink/io_address.h>
+#include <dhcp4/dhcp4_srv.h>
+
+#include <gtest/gtest.h>
+
+#include <fstream>
+#include <iostream>
+
+#include <arpa/inet.h>
using namespace std;
using namespace isc;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <stdio.h>
-#include <gtest/gtest.h>
#include <log/logger_support.h>
+#include <gtest/gtest.h>
+
int
main(int argc, char* argv[]) {
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <string>
-#include <exceptions/exceptions.h>
-#include <cc/data.h>
-
#ifndef DHCP6_CONFIG_PARSER_H
#define DHCP6_CONFIG_PARSER_H
+#include <cc/data.h>
+#include <exceptions/exceptions.h>
+
+#include <string>
+
namespace isc {
namespace dhcp {
#include <config.h>
-#include <cassert>
-#include <iostream>
-
#include <asiolink/asiolink.h>
#include <cc/data.h>
#include <cc/session.h>
#include <cc/session.h>
#include <config/ccsession.h>
+#include <dhcp/iface_mgr.h>
+#include <dhcp6/config_parser.h>
#include <dhcp6/ctrl_dhcp6_srv.h>
#include <dhcp6/dhcp6_log.h>
#include <dhcp6/spec_config.h>
-#include <dhcp6/config_parser.h>
-#include <dhcp/iface_mgr.h>
#include <exceptions/exceptions.h>
#include <util/buffer.h>
+#include <cassert>
+#include <iostream>
+
using namespace isc::asiolink;
using namespace isc::cc;
using namespace isc::config;
#ifndef CTRL_DHCPV6_SRV_H
#define CTRL_DHCPV6_SRV_H
-#include <dhcp6/dhcp6_srv.h>
#include <asiolink/asiolink.h>
+#include <cc/data.h>
#include <cc/session.h>
#include <config/ccsession.h>
-#include <cc/data.h>
+#include <dhcp6/dhcp6_srv.h>
namespace isc {
namespace dhcp {
/// Defines the logger used by the top-level component of b10-dhcp6.
-#include "dhcp6_log.h"
+#include <dhcp6/dhcp6_log.h>
namespace isc {
namespace dhcp {
#ifndef DHCP6_LOG_H
#define DHCP6_LOG_H
-#include <log/macros.h>
-#include <log/logger_support.h>
#include <dhcp6/dhcp6_messages.h>
+#include <log/logger_support.h>
+#include <log/macros.h>
namespace isc {
namespace dhcp {
#ifndef DHCPV6_SRV_H
#define DHCPV6_SRV_H
-#include <iostream>
-
#include <dhcp/dhcp6.h>
#include <dhcp/duid.h>
#include <dhcp/option.h>
#include <boost/noncopyable.hpp>
-namespace isc {
+#include <iostream>
+namespace isc {
namespace dhcp {
/// @brief DHCPv6 server service.
///
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-
-#include <boost/lexical_cast.hpp>
#include <dhcp6/ctrl_dhcp6_srv.h>
#include <dhcp6/dhcp6_log.h>
#include <log/logger_support.h>
+#include <boost/lexical_cast.hpp>
+
+#include <iostream>
+
using namespace isc::dhcp;
using namespace std;
#include <dhcpsrv/subnet.h>
#include <boost/foreach.hpp>
+#include <gtest/gtest.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <arpa/inet.h>
-#include <gtest/gtest.h>
using namespace std;
using namespace isc;
#include <config.h>
#include <asiolink/io_address.h>
-#include <boost/scoped_ptr.hpp>
#include <config/ccsession.h>
#include <dhcp/dhcp6.h>
#include <dhcp/duid.h>
#include <util/buffer.h>
#include <util/range_utilities.h>
+#include <boost/scoped_ptr.hpp>
#include <gtest/gtest.h>
#include <fstream>
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
+#include <dhcp/duid.h>
#include <exceptions/exceptions.h>
-#include <stdint.h>
#include <util/io_utilities.h>
-#include <dhcp/duid.h>
-#include <vector>
-#include <sstream>
+
#include <iomanip>
+#include <sstream>
+#include <vector>
+
+#include <stdint.h>
namespace isc {
namespace dhcp {
#define DUID_H
#include <asiolink/io_address.h>
+
#include <vector>
+
#include <stdint.h>
#include <unistd.h>
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <sstream>
-#include <fstream>
-#include <string.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <sys/select.h>
+
+// This must be included before udp_endpoint.h
#include <asio.hpp>
+#include <asiolink/io_error.h>
+#include <asiolink/udp_endpoint.h>
#include <dhcp/dhcp4.h>
#include <dhcp/dhcp6.h>
#include <dhcp/iface_mgr.h>
#include <exceptions/exceptions.h>
-#include <asiolink/udp_endpoint.h>
-#include <asiolink/io_error.h>
#include <util/io/pktinfo_utilities.h>
+
+#include <fstream>
+#include <sstream>
+
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <string.h>
+#include <sys/select.h>
+
using namespace std;
using namespace isc::asiolink;
using namespace isc::util::io::internal;
#ifndef IFACE_MGR_H
#define IFACE_MGR_H
-#include <list>
-#include <boost/shared_ptr.hpp>
-#include <boost/scoped_array.hpp>
-#include <boost/noncopyable.hpp>
#include <asiolink/io_address.h>
-#include <dhcp/dhcp6.h>
#include <dhcp/dhcp4.h>
+#include <dhcp/dhcp6.h>
#include <dhcp/pkt4.h>
#include <dhcp/pkt6.h>
+#include <boost/noncopyable.hpp>
+#include <boost/scoped_array.hpp>
+#include <boost/shared_ptr.hpp>
+
+#include <list>
+
namespace isc {
namespace dhcp {
#if defined(OS_LINUX)
+#include <asiolink/io_address.h>
#include <dhcp/iface_mgr.h>
#include <exceptions/exceptions.h>
+#include <util/io/sockaddr_util.h>
+
+#include <boost/array.hpp>
+#include <boost/static_assert.hpp>
#include <stdint.h>
#include <net/if.h>
#include <linux/rtnetlink.h>
-#include <boost/array.hpp>
-#include <boost/static_assert.hpp>
-#include <dhcp/iface_mgr.h>
-#include <exceptions/exceptions.h>
-#include <asiolink/io_address.h>
-#include <util/io/sockaddr_util.h>
using namespace std;
using namespace isc;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <boost/shared_array.hpp>
-#include <boost/shared_ptr.hpp>
-#include <util/buffer.h>
-#include <exceptions/exceptions.h>
-#include <dhcp/libdhcp++.h>
-#include "config.h"
+#include <config.h>
+
#include <dhcp/dhcp4.h>
#include <dhcp/dhcp6.h>
+#include <dhcp/libdhcp++.h>
#include <dhcp/option.h>
#include <dhcp/option6_ia.h>
#include <dhcp/option6_iaaddr.h>
-#include <dhcp/option_definition.h>
#include <dhcp/option6_int_array.h>
+#include <dhcp/option_definition.h>
+#include <exceptions/exceptions.h>
+#include <util/buffer.h>
+
+#include <boost/shared_array.hpp>
+#include <boost/shared_ptr.hpp>
using namespace std;
using namespace isc::dhcp;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef LIBDHCP_H_
-#define LIBDHCP_H_
+#ifndef LIBDHCP_H
+#define LIBDHCP_H
#include <dhcp/option_definition.h>
#include <dhcp/pkt6.h>
#include <util/buffer.h>
+
#include <iostream>
namespace isc {
}
}
-#endif
+#endif // LIBDHCP_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <string.h>
-#include <stdint.h>
-#include <arpa/inet.h>
-#include <sstream>
+#include <dhcp/libdhcp++.h>
+#include <dhcp/option.h>
+#include <exceptions/exceptions.h>
+#include <util/io_utilities.h>
+
#include <iomanip>
-#include "exceptions/exceptions.h"
-#include "util/io_utilities.h"
+#include <sstream>
-#include "dhcp/option.h"
-#include "dhcp/libdhcp++.h"
+#include <arpa/inet.h>
+#include <stdint.h>
+#include <string.h>
using namespace std;
using namespace isc::util;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION_H_
-#define OPTION_H_
+#ifndef OPTION_H
+#define OPTION_H
+
+#include <util/buffer.h>
+
+#include <boost/shared_ptr.hpp>
-#include <string>
#include <map>
+#include <string>
#include <vector>
-#include <boost/shared_ptr.hpp>
-#include <util/buffer.h>
namespace isc {
namespace dhcp {
} // namespace isc::dhcp
} // namespace isc
-#endif
+#endif // OPTION_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <string.h>
-#include <stdint.h>
-#include <arpa/inet.h>
-#include <sstream>
-#include <iomanip>
-#include <exceptions/exceptions.h>
#include <asiolink/io_address.h>
-#include <util/io_utilities.h>
#include <dhcp/option4_addrlst.h>
+#include <exceptions/exceptions.h>
+#include <util/io_utilities.h>
+
+#include <iomanip>
+#include <sstream>
+
+#include <arpa/inet.h>
+#include <stdint.h>
+#include <string.h>
using namespace std;
using namespace isc::util;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION4_ADDRLST_H_
-#define OPTION4_ADDRLST_H_
+#ifndef OPTION4_ADDRLST_H
+#define OPTION4_ADDRLST_H
-#include <string>
-#include <map>
-#include <vector>
-#include <boost/shared_ptr.hpp>
-#include <boost/shared_array.hpp>
#include <asiolink/io_address.h>
-#include <util/buffer.h>
#include <dhcp/option.h>
+#include <util/buffer.h>
+
+#include <boost/shared_array.hpp>
+#include <boost/shared_ptr.hpp>
+
+#include <map>
+#include <string>
+#include <vector>
namespace isc {
namespace dhcp {
} // namespace isc::dhcp
} // namespace isc
-#endif
+#endif // OPTION4_ADDRLST_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <stdint.h>
-#include <arpa/inet.h>
+#include <asiolink/io_address.h>
+#include <dhcp/dhcp6.h>
+#include <dhcp/libdhcp++.h>
+#include <dhcp/option6_addrlst.h>
+#include <exceptions/exceptions.h>
+#include <util/io_utilities.h>
+
#include <sstream>
-#include "exceptions/exceptions.h"
-#include "asiolink/io_address.h"
-#include "util/io_utilities.h"
-#include "dhcp/libdhcp++.h"
-#include "dhcp/option6_addrlst.h"
-#include "dhcp/dhcp6.h"
+#include <arpa/inet.h>
+#include <stdint.h>
using namespace std;
using namespace isc;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION6_ADDRLST_H_
-#define OPTION6_ADDRLST_H_
+#ifndef OPTION6_ADDRLST_H
+#define OPTION6_ADDRLST_H
-#include <vector>
#include <asiolink/io_address.h>
#include <dhcp/option.h>
+#include <vector>
+
namespace isc {
namespace dhcp {
} // isc::dhcp namespace
} // isc namespace
-#endif /* OPTION_ADDRLST_H_ */
+#endif // OPTION_ADDRLST_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <stdint.h>
-#include <arpa/inet.h>
-#include <sstream>
-
-#include <exceptions/exceptions.h>
+#include <dhcp/dhcp6.h>
#include <dhcp/libdhcp++.h>
#include <dhcp/option6_ia.h>
-#include <dhcp/dhcp6.h>
+#include <exceptions/exceptions.h>
#include <util/io_utilities.h>
+#include <arpa/inet.h>
+#include <sstream>
+#include <stdint.h>
+
using namespace std;
using namespace isc::util;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION_IA_H_
-#define OPTION_IA_H_
+#ifndef OPTION_IA_H
+#define OPTION_IA_H
+
+#include <dhcp/option.h>
#include <stdint.h>
-#include "option.h"
namespace isc {
namespace dhcp {
} // isc::dhcp namespace
} // isc namespace
-#endif /* OPTION_IA_H_ */
+#endif // OPTION_IA_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <stdint.h>
-#include <arpa/inet.h>
+#include <asiolink/io_address.h>
+#include <dhcp/dhcp6.h>
+#include <dhcp/libdhcp++.h>
+#include <dhcp/option6_iaaddr.h>
+#include <exceptions/exceptions.h>
+#include <util/io_utilities.h>
+
#include <sstream>
-#include "exceptions/exceptions.h"
-#include "dhcp/libdhcp++.h"
-#include "dhcp/option6_iaaddr.h"
-#include "dhcp/dhcp6.h"
-#include "asiolink/io_address.h"
-#include "util/io_utilities.h"
+#include <stdint.h>
+#include <arpa/inet.h>
using namespace std;
using namespace isc::asiolink;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION6_IAADDR_H_
-#define OPTION6_IAADDR_H_
+#ifndef OPTION6_IAADDR_H
+#define OPTION6_IAADDR_H
-#include "asiolink/io_address.h"
-#include "dhcp/option.h"
+#include <asiolink/io_address.h>
+#include <dhcp/option.h>
namespace isc {
namespace dhcp {
} // isc::dhcp namespace
} // isc namespace
-#endif /* OPTION_IA_H_ */
+#endif // OPTION_IA_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION6_INT_H_
-#define OPTION6_INT_H_
+#ifndef OPTION6_INT_H
+#define OPTION6_INT_H
#include <dhcp/libdhcp++.h>
#include <dhcp/option.h>
} // isc::dhcp namespace
} // isc namespace
-#endif /* OPTION6_INT_H_ */
+#endif // OPTION6_INT_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION6_INT_ARRAY_H_
-#define OPTION6_INT_ARRAY_H_
+#ifndef OPTION6_INT_ARRAY_H
+#define OPTION6_INT_ARRAY_H
#include <dhcp/libdhcp++.h>
#include <dhcp/option.h>
} // isc::dhcp namespace
} // isc namespace
-#endif /* OPTION6_INT_ARRAY_H_ */
+#endif // OPTION6_INT_ARRAY_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION_DATA_TYPES_H_
-#define OPTION_DATA_TYPES_H_
+#ifndef OPTION_DATA_TYPES_H
+#define OPTION_DATA_TYPES_H
#include <exceptions/exceptions.h>
} // isc::dhcp namespace
} // isc namespace
-#endif /* OPTION_DATA_TYPES_H_ */
+#endif // OPTION_DATA_TYPES_H
// PERFORMANCE OF THIS SOFTWARE.
#include <dhcp/dhcp6.h>
-#include <dhcp/option_definition.h>
#include <dhcp/option4_addrlst.h>
#include <dhcp/option6_addrlst.h>
#include <dhcp/option6_ia.h>
#include <dhcp/option6_iaaddr.h>
#include <dhcp/option6_int.h>
#include <dhcp/option6_int_array.h>
+#include <dhcp/option_definition.h>
using namespace std;
using namespace isc::util;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#ifndef OPTION_DEFINITION_H_
-#define OPTION_DEFINITION_H_
+#ifndef OPTION_DEFINITION_H
+#define OPTION_DEFINITION_H
-#include <dhcp/option_data_types.h>
#include <dhcp/option.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/multi_index_container.hpp>
+#include <dhcp/option_data_types.h>
+
#include <boost/multi_index/hashed_index.hpp>
-#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index/mem_fun.hpp>
+#include <boost/multi_index/sequenced_index.hpp>
+#include <boost/multi_index_container.hpp>
+#include <boost/shared_ptr.hpp>
namespace isc {
namespace dhcp {
} // namespace isc::dhcp
} // namespace isc
-#endif
+#endif // OPTION_DEFINITION_H
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <dhcp/pkt4.h>
-#include <dhcp/libdhcp++.h>
+#include <asiolink/io_address.h>
#include <dhcp/dhcp4.h>
+#include <dhcp/libdhcp++.h>
+#include <dhcp/pkt4.h>
#include <exceptions/exceptions.h>
-#include <asiolink/io_address.h>
+
#include <iostream>
#include <sstream>
#ifndef PKT4_H
#define PKT4_H
+#include <asiolink/io_address.h>
+#include <util/buffer.h>
+#include <dhcp/option.h>
+
+#include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/shared_ptr.hpp>
+
#include <iostream>
-#include <time.h>
#include <vector>
-#include <boost/shared_ptr.hpp>
-#include <boost/date_time/posix_time/posix_time.hpp>
-#include "asiolink/io_address.h"
-#include "util/buffer.h"
-#include "dhcp/option.h"
+
+#include <time.h>
namespace isc {
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-
#include <dhcp/dhcp6.h>
-#include <dhcp/pkt6.h>
#include <dhcp/libdhcp++.h>
+#include <dhcp/pkt6.h>
#include <exceptions/exceptions.h>
+
#include <iostream>
#include <sstream>
#ifndef PKT6_H
#define PKT6_H
+#include <asiolink/io_address.h>
+#include <dhcp/option.h>
+
+#include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/shared_array.hpp>
+#include <boost/shared_ptr.hpp>
+
#include <iostream>
+
#include <time.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/shared_array.hpp>
-#include <boost/date_time/posix_time/posix_time.hpp>
-#include "asiolink/io_address.h"
-#include "dhcp/option.h"
namespace isc {
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
+
+#include <asiolink/io_address.h>
+#include <dhcp/duid.h>
+#include <exceptions/exceptions.h>
+
+#include <boost/scoped_ptr.hpp>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <sstream>
+
#include <arpa/inet.h>
-#include <gtest/gtest.h>
-#include <exceptions/exceptions.h>
-#include <boost/scoped_ptr.hpp>
-#include <asiolink/io_address.h>
-#include <dhcp/duid.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <fstream>
-#include <sstream>
-#include <unistd.h>
-#include <arpa/inet.h>
+#include <asiolink/io_address.h>
+#include <dhcp/dhcp4.h>
+#include <dhcp/iface_mgr.h>
+#include <dhcp/pkt6.h>
+
#include <boost/scoped_ptr.hpp>
#include <gtest/gtest.h>
-#include <asiolink/io_address.h>
-#include <dhcp/pkt6.h>
-#include <dhcp/iface_mgr.h>
-#include <dhcp/dhcp4.h>
+#include <fstream>
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
+#include <unistd.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
-#include <util/buffer.h>
+
#include <dhcp/dhcp4.h>
#include <dhcp/dhcp6.h>
#include <dhcp/libdhcp++.h>
+#include <dhcp/option6_addrlst.h>
#include <dhcp/option6_ia.h>
#include <dhcp/option6_iaaddr.h>
#include <dhcp/option6_int.h>
#include <dhcp/option6_int_array.h>
-#include <dhcp/option6_addrlst.h>
-#include "config.h"
+#include <util/buffer.h>
+
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
+
#include <asiolink/io_address.h>
#include <dhcp/dhcp4.h>
#include <dhcp/option.h>
#include <dhcp/option4_addrlst.h>
#include <util/buffer.h>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
+
using namespace std;
using namespace isc;
using namespace isc::dhcp;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
+
#include <asiolink/io_address.h>
#include <dhcp/dhcp6.h>
#include <dhcp/option.h>
#include <dhcp/option6_addrlst.h>
#include <util/buffer.h>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
+
using namespace std;
using namespace isc;
using namespace isc::dhcp;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
#include <dhcp/dhcp6.h>
#include <dhcp/option.h>
#include <dhcp/option6_iaaddr.h>
#include <util/buffer.h>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
+
using namespace std;
using namespace isc;
using namespace isc::dhcp;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
#include <dhcp/dhcp6.h>
#include <dhcp/option.h>
#include <dhcp/option6_iaaddr.h>
#include <util/buffer.h>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
+
using namespace std;
using namespace isc;
using namespace isc::dhcp;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
+
#include <dhcp/dhcp6.h>
#include <dhcp/option.h>
-#include <dhcp/option6_int_array.h>
#include <dhcp/option6_iaaddr.h>
+#include <dhcp/option6_int_array.h>
#include <util/buffer.h>
#include <boost/pointer_cast.hpp>
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
+
#include <dhcp/dhcp6.h>
#include <dhcp/option.h>
-#include <dhcp/option6_int.h>
#include <dhcp/option6_iaaddr.h>
+#include <dhcp/option6_int.h>
#include <util/buffer.h>
#include <boost/pointer_cast.hpp>
#include <config.h>
-#include <exceptions/exceptions.h>
#include <asiolink/io_address.h>
#include <dhcp/dhcp4.h>
#include <dhcp/dhcp6.h>
#include <dhcp/option6_int.h>
#include <dhcp/option6_int_array.h>
#include <dhcp/option_definition.h>
+#include <exceptions/exceptions.h>
-#include <gtest/gtest.h>
-#include <boost/shared_ptr.hpp>
#include <boost/pointer_cast.hpp>
+#include <boost/shared_ptr.hpp>
+#include <gtest/gtest.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
-#include <boost/shared_ptr.hpp>
+#include <dhcp/dhcp6.h>
+#include <dhcp/option.h>
#include <exceptions/exceptions.h>
#include <util/buffer.h>
-#include "dhcp/dhcp6.h"
-#include "dhcp/option.h"
+#include <boost/shared_ptr.hpp>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-#include <arpa/inet.h>
-#include <gtest/gtest.h>
-#include <boost/static_assert.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/shared_array.hpp>
-#include <util/buffer.h>
+
#include <asiolink/io_address.h>
-#include <dhcp/pkt4.h>
#include <dhcp/dhcp4.h>
+#include <dhcp/pkt4.h>
#include <exceptions/exceptions.h>
+#include <util/buffer.h>
+
+#include <boost/shared_array.hpp>
+#include <boost/shared_ptr.hpp>
+#include <boost/static_assert.hpp>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
using namespace std;
using namespace isc;
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <iostream>
-#include <sstream>
-#include <arpa/inet.h>
-#include <boost/date_time/posix_time/posix_time.hpp>
-#include <gtest/gtest.h>
#include <asiolink/io_address.h>
+#include <dhcp/dhcp6.h>
#include <dhcp/option.h>
#include <dhcp/pkt6.h>
-#include <dhcp/dhcp6.h>
+
+#include <boost/date_time/posix_time/posix_time.hpp>
+#include <gtest/gtest.h>
+
+#include <iostream>
+#include <sstream>
+
+#include <arpa/inet.h>
using namespace std;
using namespace isc;
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <gtest/gtest.h>
#include <log/logger_support.h>
+#include <gtest/gtest.h>
+
int
main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv);
#include <dhcpsrv/lease_mgr_factory.h>
#include <cstring>
+
#include <string.h>
using namespace isc::asiolink;
#include <dhcpsrv/lease_mgr.h>
#include <boost/scoped_ptr.hpp>
-#include <mysql.h>
+#include <mysql/mysql.h>
#include <time.h>
-// Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012 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
// PERFORMANCE OF THIS SOFTWARE.
#include <config.h>
-#include <stdint.h>
-#include <stdlib.h>
+
+#include <dhcpsrv/addr_utilities.h>
#include <gtest/gtest.h>
+
#include <vector>
-#include <dhcpsrv/addr_utilities.h>
+#include <stdint.h>
+#include <stdlib.h>
using namespace std;
using namespace isc::dhcp;
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
+#include <gtest/gtest.h>
#include <iostream>
#include <sstream>
#include <map>
-#include <gtest/gtest.h>
-
using namespace std;
using namespace isc;
using namespace isc::asiolink;
#include <dhcpsrv/cfgmgr.h>
#include <exceptions/exceptions.h>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <sstream>
+
#include <arpa/inet.h>
-#include <gtest/gtest.h>
using namespace std;
using namespace isc::asiolink;
#include <asiolink/io_address.h>
#include <dhcpsrv/lease_mgr_factory.h>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <sstream>
-#include <gtest/gtest.h>
using namespace std;
using namespace isc::dhcp;
#include <asiolink/io_address.h>
#include <dhcpsrv/lease_mgr.h>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <sstream>
-#include <gtest/gtest.h>
using namespace std;
using namespace isc;
#include <dhcpsrv/lease_mgr.h>
#include <dhcpsrv/memfile_lease_mgr.h>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <sstream>
-#include <gtest/gtest.h>
using namespace std;
using namespace isc;
#include <dhcpsrv/lease_mgr_factory.h>
#include <dhcpsrv/mysql_lease_mgr.h>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <sstream>
-#include <utility>
#include <string>
-#include <gtest/gtest.h>
+#include <utility>
using namespace isc;
using namespace isc::asiolink;
#include <asiolink/io_address.h>
#include <dhcpsrv/pool.h>
+#include <gtest/gtest.h>
+
#include <iostream>
#include <vector>
#include <sstream>
-#include <gtest/gtest.h>
using boost::scoped_ptr;
using namespace isc;
-// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012 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
#include <dhcpsrv/triplet.h>
#include <exceptions/exceptions.h>
-#include <stdint.h>
#include <gtest/gtest.h>
+#include <stdint.h>
+
using namespace isc::dhcp;
using namespace isc;