PcapPlusPlus
PcapPlusPlus copied to clipboard
Is it possible to get IPv6 address for a PcapLiveDevice
Currently you have a function, PcapLiveDevice::getIPv4Address(). Is it possible to have an equivalent to return the IPv6 addresses from a live device? Thanks
PcapPlusPlus currently doesn't have this functionality but it should be fairly simple to implement. The implementation would be very similar to this: https://github.com/seladb/PcapPlusPlus/blob/master/Pcap%2B%2B/src/PcapLiveDeviceList.cpp#L264
The difference is that instead of searching for a specific IPv6 address, PcapLiveDevice::getIPv6Address()
would simply return the first address available.
@HIGGSSAM would you consider adding this to PcapLiveDevice
?
@seladb If it helps, I will try to add this feature.
Sure @jafar75 , that'd be great, thank you!
#965
Applogies I have been abit busy this week writing my disseration. @jafar75 I started doing this but haven't quite finsihed it yet, so if you have done it then great!
Added in #965
Thank you @jafar75 for working on this, much appreciated! 🙏 ❤️