BIND 10 trac2364, updated. 877c06b9535bded5ad197086df8383fdc0bd8101 [2364] Minor changes to exception text after review.
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Nov 26 12:44:12 UTC 2012
The branch, trac2364 has been updated
via 877c06b9535bded5ad197086df8383fdc0bd8101 (commit)
from b6203bf733422707388f45bc0bece9b3fe40e49d (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 877c06b9535bded5ad197086df8383fdc0bd8101
Author: Stephen Morris <stephen at isc.org>
Date: Mon Nov 26 12:43:39 2012 +0000
[2364] Minor changes to exception text after review.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/option.cc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/option.cc b/src/lib/dhcp/option.cc
index b4f36d9..3d1f1dc 100644
--- a/src/lib/dhcp/option.cc
+++ b/src/lib/dhcp/option.cc
@@ -62,14 +62,14 @@ Option::Option(Universe u, uint16_t type, OptionBufferConstIter first,
void
Option::check() {
if ( (universe_ != V4) && (universe_ != V6) ) {
- isc_throw(BadValue, "Invalid universe type specified."
- << "Only V4 and V6 are allowed.");
+ isc_throw(BadValue, "Invalid universe type specified. "
+ "Only V4 and V6 are allowed.");
}
if (universe_ == V4) {
if (type_ > 255) {
- isc_throw(OutOfRange, "DHCPv4 Option type " << type_ << " is too big."
+ isc_throw(OutOfRange, "DHCPv4 Option type " << type_ << " is too big. "
<< "For DHCPv4 allowed type range is 0..255");
} else if (data_.size() > 255) {
isc_throw(OutOfRange, "DHCPv4 Option " << type_ << " is too big.");
@@ -99,7 +99,7 @@ void
Option::pack4(isc::util::OutputBuffer& buf) {
if (universe_ == V4) {
if (len() > 255) {
- isc_throw(OutOfRange, "DHCPv4 Option " << type_ << " is too big."
+ isc_throw(OutOfRange, "DHCPv4 Option " << type_ << " is too big. "
<< "At most 255 bytes are supported.");
/// TODO Larger options can be stored as separate instances
/// of DHCPv4 options. Clients MUST concatenate them.
@@ -115,7 +115,7 @@ Option::pack4(isc::util::OutputBuffer& buf) {
LibDHCP::packOptions(buf, options_);
} else {
- isc_throw(OutOfRange, "Invalid universe type" << universe_);
+ isc_throw(OutOfRange, "Invalid universe type " << universe_);
}
return;
@@ -131,7 +131,7 @@ void Option::pack6(isc::util::OutputBuffer& buf) {
LibDHCP::packOptions6(buf, options_);
} else {
- isc_throw(OutOfRange, "Invalid universe type" << universe_);
+ isc_throw(OutOfRange, "Invalid universe type " << universe_);
}
return;
}
More information about the bind10-changes
mailing list