Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimi1010 committed Jan 19, 2025
1 parent 3c1228e commit 99e5198
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pcap++/header/DpdkDeviceList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<DpdkDevice>
class DpdkDeviceList : public internal::DeviceListBase<DpdkDevice>
{
friend class KniDeviceList;

Expand Down
8 changes: 5 additions & 3 deletions Pcap++/header/PcapLiveDeviceList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<PcapLiveDevice>
class PcapLiveDeviceList : public internal::DeviceListBase<PcapLiveDevice>
{
private:
using Base = internal::DeviceListBase<PcapLiveDevice>;
Expand Down Expand Up @@ -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(...).
Expand Down
2 changes: 1 addition & 1 deletion Pcap++/header/PfRingDeviceList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<PfRingDevice>
class PfRingDeviceList : public internal::DeviceListBase<PfRingDevice>
{
private:
using Base = internal::DeviceListBase<PfRingDevice>;
Expand Down

0 comments on commit 99e5198

Please sign in to comment.