-
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.
Change PcapLiveDevice to store IP information as IPAddresses. (#1497)
* Null to nullptr. * Encapsulated data directly fetched from pcap_if_t into a separate struct DeviceInterfaceDetails to allow direct construction of the device without re-fetching from the Pcap layer. * Updated WinPcapLiveDevice with the changes from PcapLiveDevice. * Updated PcapRemoteDevice with changes from PcapLiveDevice. * Explicitly deleted copy ctor and copy assignment. * Updated PcapLiveDeviceList with changes from PcapLiveDevice. * Updated PcapRemoteDeviceList with changes from PcapLiveDevice. * Updated PcapLiveDevice::clone to operate without the need to query the Pcap layer. * Added override 'cloneInternal' method to PcapRemoteDevice. * Renamed 'cloneInternal' to 'doClone', * Added unit test to validate that remote device->clone produces object of the correct type. * Lint * Changed device addresses to be held by IPAddress class instead of pcap_addr. * Fixed getIPAddresses using the old implementation. * Lint * Removed doClone as there is no need for it anymore and made clone virtual. * Lint * Add comment note. * Revert removed comment line.
- Loading branch information
Showing
9 changed files
with
179 additions
and
318 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
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
Oops, something went wrong.