From 5557029dfceda2176d558752aa6f187422fd5ac4 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Thu, 5 Aug 2021 15:55:33 +0300 Subject: [PATCH] [#1825] Used int64_t instead of uint32_t for ifindex within setIndex and getIndex --- src/lib/dhcp/iface_mgr.h | 6 +++--- src/lib/dhcp/pkt.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/dhcp/iface_mgr.h b/src/lib/dhcp/iface_mgr.h index b9924e9eb0..f75b8be97d 100644 --- a/src/lib/dhcp/iface_mgr.h +++ b/src/lib/dhcp/iface_mgr.h @@ -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. diff --git a/src/lib/dhcp/pkt.h b/src/lib/dhcp/pkt.h index 398e42d274..84942f5a95 100644 --- a/src/lib/dhcp/pkt.h +++ b/src/lib/dhcp/pkt.h @@ -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