Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/ipprefix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ IpPrefix::IpPrefix(const ip_addr_t &ip, int mask) : m_ip(ip), m_mask(mask)
}
}

bool IpPrefix::isValid()
bool IpPrefix::isValid() const
{
if (m_mask < 0) return false;

Expand Down
2 changes: 1 addition & 1 deletion common/ipprefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class IpPrefix
std::string to_string() const;

private:
bool isValid();
bool isValid() const;

IpAddress m_ip;
int m_mask;
Expand Down