2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 04:57:52 +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
No known key found for this signature in database
GPG Key ID: 86E9385BC2203766
2 changed files with 4 additions and 4 deletions

View File

@ -213,7 +213,7 @@ public:
/// @brief Returns interface index.
///
/// @return interface index
uint32_t getIndex() const { return ifindex_; }
int64_t getIndex() const { return ifindex_; }
/// @brief Returns interface name.
///
@ -400,7 +400,7 @@ protected:
std::string name_;
/// Interface index (a value that uniquely identifies an interface).
int ifindex_;
int64_t ifindex_;
/// List of assigned addresses.
AddressCollection addrs_;
@ -487,7 +487,7 @@ public:
boost::multi_index::hashed_unique<
// Use the interface index as the key.
boost::multi_index::const_mem_fun<
Iface, uint32_t, &Iface::getIndex
Iface, int64_t, &Iface::getIndex
>
>,
// 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
// License, v. 2.0. If a copy of the MPL was not distributed with this