Lines Matching refs:recv
760 fn recv(s: &mut TestSocket, timestamp: Instant, reprs: &[(Ipv4Repr, UdpRepr, DhcpRepr)]) { in recv() function
802 macro_rules! recv { macro
804 recv!($socket, time 0, $reprs);
807 recv(&mut $socket, Instant::from_millis($time), &$reprs);
1021 recv!(s, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_bind()
1025 recv!(s, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_bind()
1056 recv!(s, [(IP_BROADCAST, UDP_SEND_DIFFERENT_PORT, DHCP_DISCOVER)]); in test_bind_different_ports()
1060 recv!(s, [(IP_BROADCAST, UDP_SEND_DIFFERENT_PORT, DHCP_REQUEST)]); in test_bind_different_ports()
1091 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_discover_retransmit()
1092 recv!(s, time 1_000, []); in test_discover_retransmit()
1093 recv!(s, time 10_000, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_discover_retransmit()
1094 recv!(s, time 11_000, []); in test_discover_retransmit()
1095 recv!(s, time 20_000, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_discover_retransmit()
1099 recv!(s, time 20_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_discover_retransmit()
1106 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_request_retransmit()
1108 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_retransmit()
1109 recv!(s, time 1_000, []); in test_request_retransmit()
1110 recv!(s, time 5_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_retransmit()
1111 recv!(s, time 6_000, []); in test_request_retransmit()
1112 recv!(s, time 10_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_retransmit()
1113 recv!(s, time 15_000, []); in test_request_retransmit()
1114 recv!(s, time 20_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_retransmit()
1132 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_request_timeout()
1134 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_timeout()
1135 recv!(s, time 5_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_timeout()
1136 recv!(s, time 10_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_timeout()
1137 recv!(s, time 20_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_timeout()
1138 recv!(s, time 30_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_timeout()
1142 recv!(s, time 70_000, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_request_timeout()
1146 recv!(s, time 60_000, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_timeout()
1153 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_request_nak()
1155 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_REQUEST)]); in test_request_nak()
1157 recv!(s, time 0, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_request_nak()
1164 recv!(s, []); in test_renew()
1166 recv!(s, time 500_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew()
1195 recv!(s, []); in test_renew_retransmit()
1196 recv!(s, time 500_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew_retransmit()
1197 recv!(s, time 749_000, []); in test_renew_retransmit()
1198 recv!(s, time 750_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew_retransmit()
1199 recv!(s, time 874_000, []); in test_renew_retransmit()
1200 recv!(s, time 875_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew_retransmit()
1218 recv!(s, []); in test_renew_timeout()
1219 recv!(s, time 500_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew_timeout()
1220 recv!(s, time 999_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew_timeout()
1221 recv!(s, time 1_000_000, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_renew_timeout()
1232 recv!(s, time 500_000, [(IP_SEND, UDP_SEND, DHCP_RENEW)]); in test_renew_nak()
1234 recv!(s, time 500_000, [(IP_BROADCAST, UDP_SEND, DHCP_DISCOVER)]); in test_renew_nak()