summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2024-02-20 21:47:33 +0100
committerThomas Markwalder <tmark@isc.org>2024-02-23 13:08:04 +0100
commit63bdeab6d2839c97f571e289733835e3d497e72a (patch)
tree2004380057efd197cb007dd1e8b907fa6259261a
parent[#3245] Adds fundamental classes to perfmon (diff)
downloadkea-63bdeab6d2839c97f571e289733835e3d497e72a.tar.xz
kea-63bdeab6d2839c97f571e289733835e3d497e72a.zip
[#3245] Fixed unused variable warning
src/lib/dhcp/pkt_filter_inet6.cc PktFilterInet6::openSocket() - added errmsg to exception text as originally intended
-rw-r--r--src/lib/dhcp/pkt_filter_inet6.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dhcp/pkt_filter_inet6.cc b/src/lib/dhcp/pkt_filter_inet6.cc
index 98ea732c29..443e19101d 100644
--- a/src/lib/dhcp/pkt_filter_inet6.cc
+++ b/src/lib/dhcp/pkt_filter_inet6.cc
@@ -103,7 +103,8 @@ PktFilterInet6::openSocket(const Iface& iface,
int enable = 1;
if (setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, &enable, sizeof(enable))) {
const char* errmsg = strerror(errno);
- isc_throw(SocketConfigError, "Can't set SO_TIMESTAMP for " << addr.toText());
+ isc_throw(SocketConfigError, "Could not enable SO_TIMESTAMP for " << addr.toText()
+ << ", error: " << errmsg);
}
#endif