/smoltcp-0.9.1/ |
D | gen_config.py | 10 def feature(name, default, min, max, pow2=None): argument 12 val = min 30 feature("iface_max_addr_count", default=2, min=1, max=8) 31 feature("iface_max_multicast_group_count", default=4, min=1, max=1024, pow2=8) 32 feature("iface_max_sixlowpan_address_context_count", default=4, min=1, max=1024, pow2=8) 33 feature("iface_neighbor_cache_count", default=4, min=1, max=1024, pow2=8) 34 feature("iface_max_route_count", default=2, min=1, max=1024, pow2=8) 35 feature("fragmentation_buffer_size", default=1500, min=256, max=65536, pow2=True) 36 feature("assembler_max_segment_count", default=4, min=1, max=32, pow2=4) 37 feature("reassembly_buffer_size", default=1500, min=256, max=65536, pow2=True) [all …]
|
/smoltcp-0.9.1/src/storage/ |
D | ring_buffer.rs | 83 cmp::min(self.window(), self.capacity() - self.get_idx(self.length)) in contiguous_window() 207 let size = cmp::min(size, buf.len()); in enqueue_many() 221 let size = cmp::min(buf.len(), data.len()); in enqueue_slice() 226 let size = cmp::min(buf.len(), data.len()); in enqueue_slice() 244 let max_size = cmp::min(self.len(), capacity - self.read_at); in dequeue_many_with() 264 let size = cmp::min(size, buf.len()); in dequeue_many() 278 let size = cmp::min(buf.len(), data.len()); in dequeue_slice() 283 let size = cmp::min(buf.len(), data.len()); in dequeue_slice()
|
/smoltcp-0.9.1/examples/ |
D | benchmark.rs | 37 let length = cmp::min(buffer.len(), AMOUNT - processed); in client() 125 let length = cmp::min(buffer.len(), AMOUNT - processed); in main() 143 let length = cmp::min(buffer.len(), AMOUNT - processed); in main()
|
D | sixlowpan_benchmark.rs | 101 let length = cmp::min(buffer.len(), AMOUNT - processed); in client() 196 let length = cmp::min(buffer.len(), AMOUNT - processed); in main() 212 let length = cmp::min(buffer.len(), AMOUNT - processed); in main()
|
D | ping.rs | 255 let resume_at = cmp::min(poll_at, send_at); in main()
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | tcp_headers.rs | 50 let copy_len = cmp::min( in new() 102 let copy_len = cmp::min(replacement_data.len(), tcp_header_len); in fuzz_packet()
|
/smoltcp-0.9.1/src/socket/ |
D | udp.rs | 1 use core::cmp::min; 335 let length = min(data.len(), buffer.len()); in recv_slice() 368 let length = min(data.len(), buffer.len()); in peek_slice()
|
D | raw.rs | 1 use core::cmp::min; 245 let length = min(data.len(), buffer.len()); in recv_slice() 275 let length = min(data.len(), buffer.len()); in peek_slice()
|
D | dns.rs | 607 pq.delay = MAX_RETRANSMIT_DELAY.min(pq.delay * 2); in dispatch() 626 .min() in poll_at()
|
D | dhcpv4.rs | 271 ClientState::Renewing(state) => state.renew_at.min(state.expires_at), in poll_at() 442 lease_duration = lease_duration.min(max_lease_duration); in parse_ack() 479 .map(|d| Duration::from_secs(d as u64).min(lease_duration / 2)) in parse_ack()
|
D | tcp.rs | 191 self.rtt = RTTE_MAX_RTO.min(self.rtt * 2); in on_retransmit() 548 cmp::min( in scaled_window() 1881 let effective_mss = local_mss.min(self.remote_mss); in seq_to_transmit() 1893 self.local_seq_no + core::cmp::min(self.remote_win_len, self.tx_buffer.len()); in seq_to_transmit() 2074 repr.window_len = self.rx_buffer.window().min((1 << 16) - 1) as u16; in dispatch() 2115 .min(self.remote_mss) in dispatch() 2116 .min(cx.ip_mtu() - ip_repr.header_len() - TCP_HEADER_LEN); in dispatch() 2275 .min() in poll_at() 2794 window_len: cmp::min(*buffer_size, 65535) as u16, in test_listen_syn_win_scale_buffers() 3469 window_len: cmp::min(*buffer_size, 65535) as u16, in test_syn_sent_win_scale_buffers()
|
D | icmp.rs | 365 let length = cmp::min(data.len(), buffer.len()); in recv_slice()
|
/smoltcp-0.9.1/src/wire/ |
D | icmpv4.rs | 500 let data_len = cmp::min(packet.data_mut().len(), data.len()); in emit() 513 let data_len = cmp::min(packet.data_mut().len(), data.len()); in emit()
|
D | icmpv6.rs | 716 let data_len = cmp::min(packet.payload_mut().len(), data.len()); in emit() 729 let data_len = cmp::min(packet.payload_mut().len(), data.len()); in emit()
|
D | ndiscoption.rs | 221 let len = MAX_HARDWARE_ADDRESS_LEN.min(self.data_len() as usize * 8 - 2); in link_layer_addr()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | ipv4.rs | 337 let ip_len = (frag.packet_len - frag.sent_bytes + frag.ipv4.repr.buffer_len()).min(mtu_max); in dispatch_ipv4_frag()
|
D | sixlowpan.rs | 572 let frag_size = (frag.packet_len - frag.sent_bytes).min(frag.sixlowpan.fragn_size); in dispatch_ieee802154_frag()
|
D | mod.rs | 440 cmp::min(len, mtu - header_len * 2 - 8) in icmp_reply_payload_len() 813 .min() in poll_at()
|