Open conqp opened 1 year ago
@conqp if I'm not mistaken, in your code example you are not actually using anything from rustcap
.
In general my recommendation would be to use libpnet and rust-pcap/pcap and not rustcap
. pnet_datalink
includes rust-pcap/pcap as a dependency.
I haven't used them much so I can't vouch for them, but they are almost certainly more full-featured and well-maintained.
That said, if there is something you find useful here, I can update the dependencies and create a new release. Otherwise, I'm inclined to archive this and link to libpnet and rust-pcap/pcap as better alternatives.
Thanks for the feedback. In the meantime I migrated to the local_ip_address
and ipnetwork
crates, since I only needed IP address discovery and not actual packet capturing.
https://github.com/homeinfogmbh/digsigctl/commit/15d715e9919599a865465dbe138e52c1f7ec912c
I am trying to compile this MRE on Windows 11 Pro:
Cargo.toml
src/main.rs
Resulting in this error:
It seems that
register
is no longer available inpnet_macros