Skip to content

Commit ff73106

Browse files
author
Danny Browning
committed
Make list interfaces public
1 parent 6e29c1f commit ff73106

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ async fn next_packets(
9696
return None;
9797
}
9898

99-
fn list_devices<F>(filter: F) -> Result<Vec<String>, errors::Error> where F: Fn(&str) -> bool {
99+
/// 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 {
100101
let mut err_buf = vec![0u8 as std::os::raw::c_char; pcap_sys::PCAP_ERRBUF_SIZE as _];
101102
let mut device_result: *mut pcap_sys::pcap_if_t = std::ptr::null_mut();
102103

0 commit comments

Comments
 (0)