]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1825] Used int64_t instead of uint32_t for ifindex within setIndex and getIndex
authorAndrei Pavel <andrei@isc.org>
Thu, 5 Aug 2021 12:55:33 +0000 (15:55 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 12 Aug 2021 15:51:12 +0000 (18:51 +0300)
src/lib/dhcp/iface_mgr.h
src/lib/dhcp/pkt.h

index b9924e9eb0373899db765420b975fd9275227268..f75b8be97df4ee8903f6ff3fd5d021cb1a985eda 100644 (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.
index 398e42d2747fb5a153cf4182f91b6f46adc961b9..84942f5a95b1c4f6dc5e57d92d94108f30534ad1 100644 (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