>
> IfaceContainer;
- /// @brief Constructor.
- IfaceCollection() { }
-
- /// @brief Destructor.
- ~IfaceCollection() { }
-
/// @brief Begin iterator.
///
/// @return The container sequence begin iterator.
std::mutex mutex_;
/// @brief The last interface returned by a lookup method.
+ ///
+ /// A lookup method first tries the cache: if it matches the cache is
+ /// returned without an expensive lookup in the container. If it does
+ /// not match and a value is found in the container the cache is
+ /// updated with this value.
+ /// The cache should perform well when active interfaces are a small
+ /// subset of the whole interface set, or when consecutive packets
+ /// come from the same interface.
IfacePtr cache_;
/// @brief The container.
if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY,
(char *)&flag, sizeof(flag)) < 0) {
close(sock);
- isc_throw(SocketConfigError, "Can't set IPPROTO_IPV6 option on "
+ isc_throw(SocketConfigError, "Can't set IPV6_V6ONLY option on "
"IPv6 socket.");
}
#endif