Lines Matching refs:bind_addr
10 let bind_addr = IpSocketAddress::new(ip, 0); in test_udp_bind_ephemeral_port() localVariable
13 sock.blocking_bind(net, bind_addr).unwrap(); in test_udp_bind_ephemeral_port()
17 assert_eq!(bind_addr.ip(), bound_addr.ip()); in test_udp_bind_ephemeral_port()
18 assert_ne!(bind_addr.port(), bound_addr.port()); in test_udp_bind_ephemeral_port()
25 let bind_addr = in test_udp_bind_specific_port() localVariable
26 attempt_random_port(ip, |bind_addr| sock.blocking_bind(net, bind_addr)).unwrap(); in test_udp_bind_specific_port()
30 assert_eq!(bind_addr.ip(), bound_addr.ip()); in test_udp_bind_specific_port()
31 assert_eq!(bind_addr.port(), bound_addr.port()); in test_udp_bind_specific_port()
36 let bind_addr = IpSocketAddress::new(ip, 0); in test_udp_bind_addrinuse() localVariable
39 sock1.blocking_bind(net, bind_addr).unwrap(); in test_udp_bind_addrinuse()
52 let bind_addr = IpSocketAddress::new(ip, 0); in test_udp_bind_addrnotavail() localVariable
57 sock.blocking_bind(net, bind_addr), in test_udp_bind_addrnotavail()