2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 22:45:18 +00:00

[#1825] Used int64_t instead of uint32_t for ifindex within setIndex and getIndex

This commit is contained in:
Andrei Pavel
2021-08-05 15:55:33 +03:00
parent 2ce932ec24
commit 5557029dfc
2 changed files with 4 additions and 4 deletions

View File

@@ -213,7 +213,7 @@ public:
/// @brief Returns interface index. /// @brief Returns interface index.
/// ///
/// @return interface index /// @return interface index
uint32_t getIndex() const { return ifindex_; } int64_t 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).
int ifindex_; int64_t 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, uint32_t, &Iface::getIndex Iface, int64_t, &Iface::getIndex
> >
>, >,
// Start definition of index #2. // Start definition of index #2.

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2014-2019 Internet Systems Consortium, Inc. ("ISC") // Copyright (C) 2014-2021 Internet Systems Consortium, Inc. ("ISC")
// //
// This Source Code Form is subject to the terms of the Mozilla Public // This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this