2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#949] Addressed comments

This commit is contained in:
Francis Dupont
2020-03-20 18:35:45 +01:00
parent 1387def37c
commit 964d8b38a2
2 changed files with 5 additions and 7 deletions

View File

@@ -619,7 +619,7 @@ Where:
- relay-info - for relayed packets the giaddr and the RAI circuit-id,
remote-id, and subscriber-id options (option 82 sub options: 1, 2 and
6) if present. The circuit id and remote id are presented as hex
strings and when printable with their content.
strings. When their content is printable it is displayed.
- user-context - the optional user context associated with the lease.

View File

@@ -344,9 +344,8 @@ typedef boost::shared_ptr<StringSanitizer> StringSanitizerPtr;
/// \param content String to check for printable characters
/// \return True if empty or contains only printable characters, False otherwise
inline bool
isPrintable(const std::string& content)
{
for (const unsigned char& ch : content) {
isPrintable(const std::string& content) {
for (const auto& ch : content) {
if (isprint(ch) == 0) {
return (false);
}
@@ -359,9 +358,8 @@ isPrintable(const std::string& content)
/// \param content Vector to check for printable characters
/// \return True if empty or contains only printable characters, False otherwise
inline bool
isPrintable(const std::vector<uint8_t>& content)
{
for (const unsigned char& ch : content) {
isPrintable(const std::vector<uint8_t>& content) {
for (const auto& ch : content) {
if (isprint(ch) == 0) {
return (false);
}