2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[#1825] use int in ifindex_'s getters and setters

to match the type of ifindex_
This commit is contained in:
Andrei Pavel
2021-08-10 16:56:05 +03:00
parent 1eb95d578a
commit efb04ecb94
2 changed files with 5 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ public:
/// @brief Returns interface index. /// @brief Returns interface index.
/// ///
/// @return interface index /// @return interface index
int64_t getIndex() const { return ifindex_; } int getIndex() const { return ifindex_; }
/// @brief Returns interface name. /// @brief Returns interface name.
/// ///
@@ -400,7 +400,7 @@ protected:
std::string name_; std::string name_;
/// Interface index (a value that uniquely identifies an interface). /// Interface index (a value that uniquely identifies an interface).
int64_t ifindex_; int ifindex_;
/// List of assigned addresses. /// List of assigned addresses.
AddressCollection addrs_; AddressCollection addrs_;
@@ -487,7 +487,7 @@ public:
boost::multi_index::hashed_unique< boost::multi_index::hashed_unique<
// Use the interface index as the key. // Use the interface index as the key.
boost::multi_index::const_mem_fun< boost::multi_index::const_mem_fun<
Iface, int64_t, &Iface::getIndex Iface, int, &Iface::getIndex
> >
>, >,
// Start definition of index #2. // Start definition of index #2.

View File

@@ -480,7 +480,7 @@ public:
/// @brief Sets interface index. /// @brief Sets interface index.
/// ///
/// @param ifindex specifies interface index. /// @param ifindex specifies interface index.
void setIndex(int64_t ifindex) { void setIndex(int ifindex) {
ifindex_ = ifindex; ifindex_ = ifindex;
}; };
@@ -492,7 +492,7 @@ public:
/// @brief Returns interface index. /// @brief Returns interface index.
/// ///
/// @return interface index /// @return interface index
int64_t getIndex() const { int getIndex() const {
return (ifindex_); return (ifindex_);
}; };