Lines Matching refs:ip_addr
41 ip_addr: *const c_char,
57 let (ip_addr, domain) = match ( in wrap_validation_callback()
61 (Ok(ip_addr), Ok(domain)) => (ip_addr, domain), in wrap_validation_callback()
71 validation_fn(netd_id, success, ip_addr.as_ptr(), domain.as_ptr()) in wrap_validation_callback()
198 ip_addr: *const c_char, in doh_net_new()
206 let (url, domain, ip_addr, cert_path) = match unsafe { in doh_net_new()
210 std::ffi::CStr::from_ptr(ip_addr).to_str(), in doh_net_new()
214 (Ok(url), Ok(domain), Ok(ip_addr), Ok(cert_path)) => { in doh_net_new()
216 (url, None, ip_addr.to_string(), None) in doh_net_new()
218 (url, Some(domain.to_string()), ip_addr.to_string(), Some(cert_path.to_string())) in doh_net_new()
223 ip_addr.to_string(), in doh_net_new()
234 let (url, ip_addr) = match (Url::parse(url), IpAddr::from_str(&ip_addr)) { in doh_net_new()
235 (Ok(url), Ok(ip_addr)) => (url, ip_addr), in doh_net_new()
245 peer_addr: SocketAddr::new(ip_addr, DOH_PORT), in doh_net_new()
363 ip_addr: *const c_char, in success_cb()
369 assert_validation_info(net_id, ip_addr, host); in success_cb()
376 ip_addr: *const c_char, in fail_cb()
382 assert_validation_info(net_id, ip_addr, host); in fail_cb()
390 ip_addr: *const c_char, in assert_validation_info()
395 let ip_addr = unsafe { std::ffi::CStr::from_ptr(ip_addr) }.to_str().unwrap(); in assert_validation_info() localVariable
397 assert_eq!(ip_addr, expected_addr.ip().to_string()); in assert_validation_info()