Lines Matching refs:getifaddrs
3 //! Uses the Linux and/or BSD specific function `getifaddrs` to query the list
18 /// Describes a single address for an interface as returned by `getifaddrs`.
113 /// Holds the results of `getifaddrs`.
115 /// Use the function `getifaddrs` to create this Iterator. Note that the
143 /// Get interface addresses using libc's `getifaddrs`
154 /// let addrs = nix::ifaddrs::getifaddrs().unwrap();
168 pub fn getifaddrs() -> Result<InterfaceAddressIterator> {
171 Errno::result(libc::getifaddrs(addrs.as_mut_ptr())).map(|_| {
184 // Only checks if `getifaddrs` can be invoked without panicking.
187 let _ = getifaddrs();
194 let addrs = getifaddrs().unwrap();