Kea 2.5.8
|
Union for marshalling IAID into and out of the database IAID is defined in the RFC as 4 octets, which Kea code handles as a uint32_t. More...
Public Member Functions | |
Uiaid (int32_t val) | |
Constructor. | |
Uiaid (uint32_t val) | |
Constructor. | |
std::string | dbInputString () |
Return a string representing the signed 32-bit value. | |
Public Attributes | |
int32_t | ival_ |
uint32_t | uval_ |
Union for marshalling IAID into and out of the database IAID is defined in the RFC as 4 octets, which Kea code handles as a uint32_t.
Postgresql however, offers only signed integer types of sizes 2, 4, and 8 bytes (SMALLINT, INT, and BIGINT respectively). IAID is used in several indexes so rather than use the BIGINT, we use this union to safely move the value into and out of an INT column.
Definition at line 995 of file pgsql_lease_mgr.cc.
|
inline |
Constructor.
val | unsigned 32 bit value for the IAID. |
Definition at line 998 of file pgsql_lease_mgr.cc.
|
inline |
Constructor.
val | signed 32 bit value for the IAID. |
Definition at line 1002 of file pgsql_lease_mgr.cc.
|
inline |
Return a string representing the signed 32-bit value.
Definition at line 1005 of file pgsql_lease_mgr.cc.
References ival_.
Referenced by isc::dhcp::PgSqlLease6Exchange::createBindForSend(), and isc::dhcp::PgSqlLeaseMgr::getLeases6().
int32_t isc::dhcp::PgSqlLease6Exchange::Uiaid::ival_ |
Definition at line 1010 of file pgsql_lease_mgr.cc.
Referenced by isc::dhcp::PgSqlLease6Exchange::convertFromDatabase(), and dbInputString().
uint32_t isc::dhcp::PgSqlLease6Exchange::Uiaid::uval_ |
Definition at line 1009 of file pgsql_lease_mgr.cc.
Referenced by isc::dhcp::PgSqlLease6Exchange::convertFromDatabase(), and isc::dhcp::PgSqlLease6Exchange::createBindForSend().