BIND 10 trac3231, updated. 4d83e8f254cb653da6c102b73637b09e1764fe24 [3231] Added notes explaining why new DHCPv4 server methods are static.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jan 9 10:33:58 UTC 2014
The branch, trac3231 has been updated
via 4d83e8f254cb653da6c102b73637b09e1764fe24 (commit)
from 756857b003804fe4a869fd52cf837e4e70bf5f0b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4d83e8f254cb653da6c102b73637b09e1764fe24
Author: Marcin Siodelski <marcin at isc.org>
Date: Thu Jan 9 11:33:49 2014 +0100
[3231] Added notes explaining why new DHCPv4 server methods are static.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/dhcp4_srv.h | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/dhcp4_srv.h b/src/bin/dhcp4/dhcp4_srv.h
index 487000e..324ba4f 100644
--- a/src/bin/dhcp4/dhcp4_srv.h
+++ b/src/bin/dhcp4/dhcp4_srv.h
@@ -400,6 +400,7 @@ protected:
/// the Server Identifier option as this option must be added using
/// @c Dhcpv4Srv::appendServerID.
///
+ ///
/// @param msg message object (options will be added to it)
/// @param msg_type specifies message type
void appendDefaultOptions(Pkt4Ptr& msg, uint8_t msg_type);
@@ -418,6 +419,9 @@ protected:
/// check the specified message is that it is meant to be called internally
/// by the @c Dhcpv4Srv class.
///
+ /// @note This method is static because it is not dependent on the class
+ /// state.
+ ///
/// @param [out] response DHCPv4 message to which the server identifier
/// option should be added.
static void appendServerID(const Pkt4Ptr& response);
@@ -449,6 +453,9 @@ protected:
/// the interface being used to send the response. This function uses
/// @c IfaceMgr to get the socket bound to the IPv4 address on the
/// particular interface.
+ ///
+ /// @note This method is static because it is not dependent on the class
+ /// state.
static void adjustIfaceData(const Pkt4Ptr& query, const Pkt4Ptr& response);
/// @brief Sets remote addresses for outgoing packet.
@@ -464,9 +471,14 @@ protected:
/// are valid. Make sure that pointers are correct before calling this
/// function.
///
+ /// @note This method is static because it is not dependent on the class
+ /// state.
+ ///
/// @param question instance of a packet received by a server.
- /// @param [out] response response packet which addresses are to be adjusted.
- static void adjustRemoteAddr(const Pkt4Ptr& question, const Pkt4Ptr& response);
+ /// @param [out] response response packet which addresses are to be
+ /// adjusted.
+ static void adjustRemoteAddr(const Pkt4Ptr& question,
+ const Pkt4Ptr& response);
/// @brief converts server-id to text
/// Converts content of server-id option to a text representation, e.g.
More information about the bind10-changes
mailing list