From 99e5198f0cc91526c30bcf55bdb112727b55f426 Mon Sep 17 00:00:00 2001 From: Dimitar Krastev Date: Sun, 19 Jan 2025 21:12:27 +0200 Subject: [PATCH] Lint --- Pcap++/header/DpdkDeviceList.h | 2 +- Pcap++/header/PcapLiveDeviceList.h | 8 +++++--- Pcap++/header/PfRingDeviceList.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Pcap++/header/DpdkDeviceList.h b/Pcap++/header/DpdkDeviceList.h index b2f23c75e..e2316c7a9 100644 --- a/Pcap++/header/DpdkDeviceList.h +++ b/Pcap++/header/DpdkDeviceList.h @@ -55,7 +55,7 @@ namespace pcpp /// once in every application at its startup process /// - it contains the list of DpdkDevice instances and enables access to them /// - it has methods to start and stop worker threads. See more details in startDpdkWorkerThreads() - class DpdkDeviceList : public internal::DeviceListBase + class DpdkDeviceList : public internal::DeviceListBase { friend class KniDeviceList; diff --git a/Pcap++/header/PcapLiveDeviceList.h b/Pcap++/header/PcapLiveDeviceList.h index 091efe58d..b6de6b01b 100644 --- a/Pcap++/header/PcapLiveDeviceList.h +++ b/Pcap++/header/PcapLiveDeviceList.h @@ -18,7 +18,7 @@ namespace pcpp /// (on Windows) instances. All live devices are initialized on startup and wrap the network interfaces installed on /// the machine. This class enables access to them through their IP addresses or get a vector of all of them so the /// user can search them in some other way - class PcapLiveDeviceList : public internal::DeviceListBase + class PcapLiveDeviceList : public internal::DeviceListBase { private: using Base = internal::DeviceListBase; @@ -102,12 +102,14 @@ namespace pcpp return getDeviceByIp(ip6Addr); } - /// Get a pointer to the live device by its IP address represented as string. IP address can be both IPv4 or IPv6 + /// Get a pointer to the live device by its IP address represented as string. IP address can be both IPv4 or + /// IPv6 /// @param[in] ipAddrAsString The IP address defined for the device as string /// @return A pointer to the live device if this IP address is valid and exists. nullptr otherwise PcapLiveDevice* getDeviceByIp(const std::string& ipAddrAsString) const; - /// Get a pointer to the live device by its IP address represented as string. IP address can be both IPv4 or IPv6 + /// Get a pointer to the live device by its IP address represented as string. IP address can be both IPv4 or + /// IPv6 /// @param[in] ipAddrAsString The IP address defined for the device as string /// @return A pointer to the live device if this IP address is valid and exists. nullptr otherwise /// @deprecated This method has been deprecated in favor of getDeviceByIp(...). diff --git a/Pcap++/header/PfRingDeviceList.h b/Pcap++/header/PfRingDeviceList.h index 1587d0ece..f9f6d8fb0 100644 --- a/Pcap++/header/PfRingDeviceList.h +++ b/Pcap++/header/PfRingDeviceList.h @@ -15,7 +15,7 @@ namespace pcpp /// @class PfRingDeviceList /// A singleton class that holds all available PF_RING devices. Through this class the user can iterate all PF_RING /// devices or find a specific device by name - class PfRingDeviceList : public internal::DeviceListBase + class PfRingDeviceList : public internal::DeviceListBase { private: using Base = internal::DeviceListBase;