BIND 10 master, updated. 58e72cb159391aa0c7832d08ddb0df361514918e Fixed tabs in ChangeLog
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Oct 17 11:09:04 UTC 2011
The branch, master has been updated
via 58e72cb159391aa0c7832d08ddb0df361514918e (commit)
via 26f4192ca701bafca9460e994c61715916091e37 (commit)
from 86b3f90af4f0f643e44fd3f7cfd11d89a42e4ebd (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 58e72cb159391aa0c7832d08ddb0df361514918e
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Mon Oct 17 13:08:31 2011 +0200
Fixed tabs in ChangeLog
commit 26f4192ca701bafca9460e994c61715916091e37
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Mon Oct 17 13:06:56 2011 +0200
cppcheck warnings removed.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 2 +-
src/lib/dhcp/libdhcp.cc | 2 +-
src/lib/dhcp/option6_ia.h | 6 +++---
src/lib/dhcp/option6_iaaddr.h | 6 +++---
4 files changed, 8 insertions(+), 8 deletions(-)
-----------------------------------------------------------------------
diff --git a/ChangeLog b/ChangeLog
index 15293df..5a7717d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-300. [func]* tomek
+300. [func]* tomek
libdhcp: DHCP packet library was implemented. Currently it handles
packet reception, option parsing, option generation and output
packet building. Generic and specialized classes for several
diff --git a/src/lib/dhcp/libdhcp.cc b/src/lib/dhcp/libdhcp.cc
index 55c4ee7..019367f 100644
--- a/src/lib/dhcp/libdhcp.cc
+++ b/src/lib/dhcp/libdhcp.cc
@@ -100,7 +100,7 @@ LibDHCP::packOptions6(boost::shared_array<uint8_t> data,
offset = (*it).second->pack(data, data_len, offset);
}
}
- catch (Exception e) {
+ catch (const Exception& e) {
cout << "Packet build failed." << endl;
return (-1);
}
diff --git a/src/lib/dhcp/option6_ia.h b/src/lib/dhcp/option6_ia.h
index 7da2945..516b2fc 100644
--- a/src/lib/dhcp/option6_ia.h
+++ b/src/lib/dhcp/option6_ia.h
@@ -99,17 +99,17 @@ public:
///
/// @return IAID value.
///
- unsigned int getIAID() { return iaid_; }
+ unsigned int getIAID() const { return iaid_; }
/// Returns T1 timer.
///
/// @return T1 value.
- unsigned int getT1() { return t1_; }
+ unsigned int getT1() const { return t1_; }
/// Returns T2 timer.
///
/// @return T2 value.
- unsigned int getT2() { return t2_; }
+ unsigned int getT2() const { return t2_; }
/// @brief returns complete length of option
///
diff --git a/src/lib/dhcp/option6_iaaddr.h b/src/lib/dhcp/option6_iaaddr.h
index 26391bc..60c5c48 100644
--- a/src/lib/dhcp/option6_iaaddr.h
+++ b/src/lib/dhcp/option6_iaaddr.h
@@ -111,19 +111,19 @@ public:
///
/// @return address
isc::asiolink::IOAddress
- getAddress() { return addr_; }
+ getAddress() const { return addr_; }
/// Returns preferred lifetime of an address.
///
/// @return preferred lifetime (in seconds)
unsigned int
- getPreferred() { return preferred_; }
+ getPreferred() const { return preferred_; }
/// Returns valid lifetime of an address.
///
/// @return valid lifetime (in seconds)
unsigned int
- getValid() { return valid_; }
+ getValid() const { return valid_; }
/// returns data length (data length + DHCPv4/DHCPv6 option header)
virtual unsigned short
More information about the bind10-changes
mailing list