-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor of PfRingDeviceList internals. (#1445)
* Explicitly deleted copy ctors on PfRingDeviceList. * Changed PfRingDeviceList to use vector of smart pointers to hold devices. * C cast -> Cpp cast * Refactored PfRingDeviceList to utilize DeviceUtils to fetch all devices. * Changed while-loop to for-loop * Wrapped pfring ptr into a smart pointer and added a custom deleter. * Refactored calcPfRingVersion into a local function to the translation unit. * Changed equality with empty string to empty() call. * Lint * Changed type to auto. * Replaced sprintf with std::snprintf. * Fixed documentation. * Minor fixes. * Changed readPfRingVersion to return empty string on error. * Changed raw array to std::array.
- Loading branch information
Showing
2 changed files
with
76 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters