rust-pcap / pcap

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

Added support for device addresses #188

Closed njm64 closed 2 years ago

njm64 commented 3 years ago

This adds an addresses field to the Device struct, exposing the underlying addresses field from pcap_if_t. Ipv4 and Ipv6 addresses are supported.

Wojtek242 commented 2 years ago

I gave this a spin on my machine and it seems alright. I think the PR is alright as it is. Can you just fix the clippy lint so I can merge?

njm64 commented 2 years ago

Sure, the clippy lint should be fixed now.