rust-pcap / pcap

Rust language pcap library
Apache License 2.0
620 stars 142 forks source link

Complete deviceinterface information #252

Closed Wojtek242 closed 2 years ago

Wojtek242 commented 2 years ago

Closes #13

It turns out that since the original issue was create 7 years ago almost everything has been added to the Device struct. The only thing remaining were the flags documented at: https://www.tcpdump.org/manpages/pcap_findalldevs.3pcap.html.

This field was slightly problematic as it consisted of two separate items really:

In the end I opted to create a wrapper struct that separates these two. My previous iteration without this wrapper is in commit 606bdc3.

Wojtek242 commented 2 years ago

@Stargateur, would you mind doing a review?