We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e29c1f commit ff73106Copy full SHA for ff73106
src/lib.rs
@@ -96,7 +96,8 @@ async fn next_packets(
96
return None;
97
}
98
99
-fn list_devices<F>(filter: F) -> Result<Vec<String>, errors::Error> where F: Fn(&str) -> bool {
+/// List available devices by name, that match a filter against the name of the interface
100
+pub fn list_devices<F>(filter: F) -> Result<Vec<String>, errors::Error> where F: Fn(&str) -> bool {
101
let mut err_buf = vec![0u8 as std::os::raw::c_char; pcap_sys::PCAP_ERRBUF_SIZE as _];
102
let mut device_result: *mut pcap_sys::pcap_if_t = std::ptr::null_mut();
103
0 commit comments