26 uint32_t other_val = other.
getValue();
28 if (value_ < other_val) {
30 }
else if (other_val < value_) {
38 return (
operator==(other) ||
operator<(other));
43 return (!
operator==(other) && !
operator<(other));
48 return (!
operator<(other));
53 uint64_t new_val =
static_cast<uint64_t
>(value_) +
54 static_cast<uint64_t>(other_val);
60 return (
operator+(other.
getValue()));
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
bool operator>=(const Serial &other) const
Returns true if the serial value of this serial is equal to or greater than the other, according to serial arithmetic as described in RFC 1982.
This class defines DNS serial numbers and serial arithmetic.
uint32_t getValue() const
Returns the uint32_t representation of this serial value.
const uint64_t MAX_SERIAL_VALUE
Maximum value a serial can have, used in + operator.
bool operator<(const Serial &other) const
Returns true if the serial value of this serial is smaller than the other, according to serial arithm...
bool operator==(const Serial &other) const
Returns true if the serial values are equal.
Defines the logger used by the top-level component of kea-lfc.
bool operator!=(const Serial &other) const
Returns true if the serial values are not equal.
const uint32_t MAX_SERIAL_INCREMENT
The maximum difference between two serial numbers.
bool operator>(const Serial &other) const
Returns true if the serial value of this serial is greater than the other, according to serial arithm...
Serial operator+(const Serial &other) const
Adds the given value to the serial number.
Serial(uint32_t value)
Constructor with value.
bool operator<=(const Serial &other) const
Returns true if the serial value of this serial is equal to or smaller than the other, according to serial arithmetic as described in RFC 1982.