From: Tomek Mrugalski Date: Fri, 3 Feb 2012 15:54:41 +0000 (+0100) Subject: [1540] Huge (29 files changed) Option6 and Pkt6 refactoring in DHCP. X-Git-Tag: trac2351_base~240^2~8^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=219324e66e5bf33fde5cd53dc19f82fb1d442fc8;p=thirdparty%2Fkea.git [1540] Huge (29 files changed) Option6 and Pkt6 refactoring in DHCP. - Migrated from boost::shared_array to std::vector - Pkt6 now have all fields private, getters/setters implemented - Many smaller clean-ups - Tests updated to follow new procedure - isc::util::OutputBuffer is now used --- diff --git a/ChangeLog b/ChangeLog index a1bfb8ac9f..e09ab6d266 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +3XX. [func] tomek + libdhcp++: Option6 and Pkt6 now follow the same design as + options and packet for DHCPv4. General code refactoring after + end of 2011 year release. + (Trac #1540, git TBD) + 359. [bug] kevin Corrected SOA serial check in xfrout. It now compares the SOA serial of an IXFR query with that of the server based serial diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index 89b48c6e4a..735c39f7fa 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2011-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 @@ -59,8 +59,8 @@ Dhcpv4Srv::~Dhcpv4Srv() { bool Dhcpv4Srv::run() { while (!shutdown_) { - boost::shared_ptr query; // client's message - boost::shared_ptr rsp; // server's response + Pkt4Ptr query; // client's message + Pkt4Ptr rsp; // server's response query = IfaceMgr::instance().receive4(); @@ -141,14 +141,13 @@ Dhcpv4Srv::setServerID() { #if 0 // uncomment this once ticket 1350 is merged. IOAddress srvId("127.0.0.1"); - serverid_ = boost::shared_ptr