Addresses returning empty Vec #236
-
Hi! I'm attempting to retrieve the IP address of a device. However the following returns an emtpy vec: I was wondering is there a way to retrieve the IP address associated with the device if it's not the above way? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not sure I fully understand your question, if addresses is empty it's probably mean that this devices don't have any address, you can use https://docs.rs/pcap/0.9.2/pcap/struct.Device.html#method.list and show all devices and their addresses. You may find what you search. |
Beta Was this translation helpful? Give feedback.
I'm not sure I fully understand your question, if addresses is empty it's probably mean that this devices don't have any address, you can use https://docs.rs/pcap/0.9.2/pcap/struct.Device.html#method.list and show all devices and their addresses. You may find what you search.