Home
last modified time | relevance | path

Searched refs:add (Results 1 – 24 of 24) sorted by relevance

/smoltcp-0.9.1/src/storage/
Dassembler.rs165 pub fn add(&mut self, mut offset: usize, size: usize) -> Result<(), TooManyHolesError> { in add() method
281 self.add(offset, size)?; in add_then_remove_front()
376 assert_eq!(assr.add(0, 16), Ok(())); in test_empty_add_full()
383 assert_eq!(assr.add(0, 4), Ok(())); in test_empty_add_front()
390 assert_eq!(assr.add(12, 4), Ok(())); in test_empty_add_back()
397 assert_eq!(assr.add(4, 8), Ok(())); in test_empty_add_mid()
404 assert_eq!(assr.add(0, 4), Ok(())); in test_partial_add_front()
411 assert_eq!(assr.add(12, 4), Ok(())); in test_partial_add_back()
418 assert_eq!(assr.add(0, 8), Ok(())); in test_partial_add_front_overlap()
425 assert_eq!(assr.add(2, 6), Ok(())); in test_partial_add_front_overlap_split()
[all …]
/smoltcp-0.9.1/src/iface/
Dfragmentation.rs110 self.assembler.add(offset, len); in add_with()
120 pub(crate) fn add(&mut self, data: &[u8], offset: usize) -> Result<(), AssemblerError> { in add() method
140 self.assembler.add(offset, data.len()); in add()
236 p_assembler.add(&data[..], 0); in packet_assembler_overlap()
237 p_assembler.add(&data[..], 1); in packet_assembler_overlap()
250 p_assembler.add(b"Hello ", 0).unwrap(); in packet_assembler_assemble()
253 p_assembler.add(b"World!", b"Hello ".len()).unwrap(); in packet_assembler_assemble()
266 p_assembler.add(b"World!", b"Hello ".len()).unwrap(); in packet_assembler_out_of_order_assemble()
269 p_assembler.add(b"Hello ", 0).unwrap(); in packet_assembler_out_of_order_assemble()
321 assr.add(&[0x00], 0).unwrap(); in packet_assembler_set_assembling_many()
[all …]
Dsocket_set.rs60 pub fn add<T: AnySocket<'a>>(&mut self, socket: T) -> SocketHandle { in add() method
/smoltcp-0.9.1/examples/
Dserver.rs82 let udp_handle = sockets.add(udp_socket); in main()
83 let tcp1_handle = sockets.add(tcp1_socket); in main()
84 let tcp2_handle = sockets.add(tcp2_socket); in main()
85 let tcp3_handle = sockets.add(tcp3_socket); in main()
86 let tcp4_handle = sockets.add(tcp4_socket); in main()
Dmulticast.rs71 let raw_handle = sockets.add(raw_socket); in main()
78 let udp_handle = sockets.add(udp_socket); in main()
Dsixlowpan.rs96 let udp_handle = sockets.add(udp_socket); in main()
97 let tcp_handle = sockets.add(tcp_socket); in main()
Dloopback.rs119 let server_handle = sockets.add(server_socket); in main()
120 let client_handle = sockets.add(client_socket); in main()
Dbenchmark.rs105 let tcp1_handle = sockets.add(tcp1_socket); in main()
106 let tcp2_handle = sockets.add(tcp2_socket); in main()
Dsixlowpan_benchmark.rs175 let tcp1_handle = sockets.add(tcp1_socket); in main()
176 let tcp2_handle = sockets.add(tcp2_socket); in main()
Ddns.rs69 let dns_handle = sockets.add(dns_socket); in main()
Ddhcp_client.rs48 let dhcp_handle = sockets.add(dhcp_socket); in main()
Dclient.rs64 let tcp_handle = sockets.add(tcp_socket); in main()
Dhttpclient.rs65 let tcp_handle = sockets.add(tcp_socket); in main()
Dping.rs140 let icmp_handle = sockets.add(icmp_socket); in main()
/smoltcp-0.9.1/
Dgen_config.py14 vals.add(val)
19 vals.add(default)
DREADME.md135 To use the _smoltcp_ library in your project, add the following to `Cargo.toml`:
291 sudo ip tuntap add name tap0 mode tap user $USER
293 sudo ip addr add 192.168.69.100/24 dev tap0
294 sudo ip -6 addr add fe80::100/64 dev tap0
295 sudo ip -6 addr add fdaa::100/64 dev tap0
296 sudo ip -6 route add fe80::/64 dev tap0
297 sudo ip -6 route add fdaa::/64 dev tap0
335 sudo ip tuntap add name tap0 mode tap user $USER
DCHANGELOG.md39 - socket/dhcpv4: add waker support (#623)
57 - wire/icmpv4: add support for TimeExceeded packets (#609)
174 - tcp: add Delayed ACK support. On by default, with a 10ms delay. ([404](https://github.com/smoltcp…
195 - phy: add null terminator to c-string passed to libc API ([372](https://github.com/smoltcp-rs/smol…
/smoltcp-0.9.1/fuzz/fuzz_targets/
Dtcp_headers.rs163 let server_handle = socket_set.add(server_socket);
164 let client_handle = socket_set.add(client_socket);
/smoltcp-0.9.1/.github/workflows/
Dclippy.yml21 - run: rustup component add clippy
/smoltcp-0.9.1/src/
Dtime.rs140 fn add(self, rhs: Duration) -> Instant { in add() method
236 fn add(self, rhs: Duration) -> Duration { in add() method
/smoltcp-0.9.1/src/iface/interface/
Dtests.rs437 let socket_handle = sockets.add(udp_socket); in test_handle_udp_broadcast()
950 let socket_handle = sockets.add(icmpv4_socket); in test_icmpv4_socket()
1214 sockets.add(raw_socket); in test_raw_socket_no_reply()
1281 let udp_socket_handle = sockets.add(udp_socket); in test_raw_socket_with_udp_socket()
1302 sockets.add(raw_socket); in test_raw_socket_with_udp_socket()
1585 let udp_socket_handle = sockets.add(udp_socket); in test_sixlowpan_udp_with_fragmentation()
Dipv4.rs48 if let Err(e) = f.add(ipv4_packet.payload(), ipv4_packet.frag_offset() as usize) { in process_ipv4()
Dsixlowpan.rs143 if let Err(e) = frag_slot.add(frag.payload(), offset) { in process_sixlowpan_fragment()
/smoltcp-0.9.1/src/wire/
Dtcp.rs26 fn add(self, rhs: usize) -> SeqNumber { in add() method