]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1825] use int in ifindex_'s getters and setters
authorAndrei Pavel <andrei@isc.org>
Tue, 10 Aug 2021 13:56:05 +0000 (16:56 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 12 Aug 2021 15:51:13 +0000 (18:51 +0300)
to match the type of ifindex_

src/lib/dhcp/iface_mgr.h
src/lib/dhcp/pkt.h

index f75b8be97df4ee8903f6ff3fd5d021cb1a985eda..12420c496ad2475656734a5af0d6eed812f60ace 100644 (file)
@@ -213,7 +213,7 @@ public:
     /// @brief Returns interface index.
     ///
     /// @return interface index
-    int64_t getIndex() const { return ifindex_; }
+    int 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).
-    int64_t ifindex_;
+    int 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, int64_t, &Iface::getIndex
+                    Iface, int, &Iface::getIndex
                 >
             >,
             // Start definition of index #2.
index 84942f5a95b1c4f6dc5e57d92d94108f30534ad1..48d03eca1398a26630548c44da0b2684ce6f50d7 100644 (file)
@@ -480,7 +480,7 @@ public:
     /// @brief Sets interface index.
     ///
     /// @param ifindex specifies interface index.
-    void setIndex(int64_t ifindex) {
+    void setIndex(int ifindex) {
         ifindex_ = ifindex;
     };
 
@@ -492,7 +492,7 @@ public:
     /// @brief Returns interface index.
     ///
     /// @return interface index
-    int64_t getIndex() const {
+    int getIndex() const {
         return (ifindex_);
     };