Home
last modified time | relevance | path

Searched refs:default (Results 1 – 25 of 32) sorted by relevance

12

/smoltcp-0.9.1/
Dgen_config.py10 def feature(name, default, min, max, pow2=None): argument
19 vals.add(default)
24 "default": default,
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)
[all …]
DREADME.md49 * IPv4 time-to-live value is configurable per socket, set to 64 by default.
50 * IPv4 default gateway is supported.
51 * Routing outgoing IPv4 packets is supported, through a default gateway or a CIDR route table.
57 * IPv6 hop-limit value is configurable per socket, set to 64 by default.
58 * Routing outgoing IPv6 packets is supported, through a default gateway or a CIDR route table.
142 The default configuration assumes a hosted environment, for ease of evaluation.
143 You probably want to disable default features and configure them one by one:
147 smoltcp = { version = "0.8.0", default-features = false, features = ["log"] }
157 This feature is enabled by default.
164 This feature is disabled by default.
[all …]
DCargo.toml20 managed = { version = "0.8", default-features = false, features = ["map"] }
21 byteorder = { version = "1.0", default-features = false }
22 log = { version = "0.4.4", default-features = false, optional = true }
24 bitflags = { version = "1.0", default-features = false }
67 default = [
68 "std", "log", # needed for `cargo test --no-default-features --features default` :/
Dbuild.rs41 for (name, default) in CONFIGS { in main()
45 value: *default, in main()
/smoltcp-0.9.1/fuzz/fuzz_targets/
Dsixlowpan_packet.rs117 Icmpv4Repr::parse(&frame, &ChecksumCapabilities::default())
124 &ChecksumCapabilities::default(),
144 &ChecksumCapabilities::default(),
152 &ChecksumCapabilities::default(),
163 &ChecksumCapabilities::default(),
174 &ChecksumCapabilities::default(),
204 &ChecksumCapabilities::default(),
213 &ChecksumCapabilities::default(),
Dtcp_headers.rs136 .ethernet_addr(EthernetAddress::default())
161 let mut socket_set_entries: [_; 2] = Default::default();
/smoltcp-0.9.1/src/iface/interface/
Dtests.rs68 config.hardware_addr = Some(EthernetAddress::default().into()); in create_ethernet()
94 config.hardware_addr = Some(Ieee802154Address::default().into()); in create_ieee802154()
163 repr.emit(&mut bytes, &ChecksumCapabilities::default()); in test_no_icmp_no_unicast_ipv4()
197 repr.emit(&mut bytes, &ChecksumCapabilities::default()); in test_no_icmp_no_unicast_ipv6()
222 repr.emit(&mut bytes, &ChecksumCapabilities::default()); in test_icmp_error_no_payload()
348 &ChecksumCapabilities::default(), in test_icmp_error_port_unreachable()
401 &ChecksumCapabilities::default(), in test_icmp_error_port_unreachable()
478 &ChecksumCapabilities::default(), in test_handle_udp_broadcast()
536 &ChecksumCapabilities::default(), in test_handle_ipv4_broadcast()
540 &ChecksumCapabilities::default(), in test_handle_ipv4_broadcast()
[all …]
Dmod.rs133 src_addr: Ipv4Address::default(), in new()
134 dst_addr: Ipv4Address::default(), in new()
140 dst_hardware_addr: EthernetAddress::default(), in new()
177 src_addr: Ipv4Address::default(), in reset()
178 dst_addr: Ipv4Address::default(), in reset()
185 self.ipv4.dst_hardware_addr = EthernetAddress::default(); in reset()
210 return Default::default();
304 fn default() -> Self { in default() method
/smoltcp-0.9.1/src/socket/
Dicmp.rs49 #[default]
100 endpoint: Default::default(), in new()
454 &ChecksumCapabilities::default(), in process()
472 &ChecksumCapabilities::default(), in process()
651 socket.send_slice(b"abcdef", IpAddress::Ipv4(Ipv4Address::default())), in test_send_unaddressable()
661 let checksum = ChecksumCapabilities::default(); in test_send_dispatch()
716 let checksum = ChecksumCapabilities::default(); in test_set_hop_limit_v4()
755 let checksum = ChecksumCapabilities::default(); in test_recv_process()
779 let checksum = ChecksumCapabilities::default(); in test_accept_bad_id()
800 let checksum = ChecksumCapabilities::default(); in test_accepts_udp()
[all …]
Dudp.rs62 endpoint: IpListenEndpoint::default(), in new()
170 self.endpoint = IpListenEndpoint::default(); in close()
/smoltcp-0.9.1/benches/
Dbench.rs54 &ChecksumCapabilities::default(), in bench_emit_tcp()
77 &ChecksumCapabilities::default(), in bench_emit_udp()
96 repr.emit(&mut packet, &ChecksumCapabilities::default()); in bench_emit_ipv4()
/smoltcp-0.9.1/.github/workflows/
Dtest.yml28 # Test default features.
29 - default
61 run: cargo test --no-default-features --features "${{ matrix.features }}"
89 run: cargo check --no-default-features --features "${{ matrix.features }}"
/smoltcp-0.9.1/src/phy/
Dmod.rs138 #[default]
279 fn default() -> Medium { in default() method
Dloopback.rs36 ..DeviceCapabilities::default() in capabilities()
Dtuntap_interface.rs50 ..DeviceCapabilities::default() in capabilities()
Draw_socket.rs68 ..DeviceCapabilities::default() in capabilities()
/smoltcp-0.9.1/src/wire/
Dmld.rs534 &ChecksumCapabilities::default(), in test_query_repr_parse()
546 &ChecksumCapabilities::default(), in test_report_repr_parse()
560 &ChecksumCapabilities::default(), in test_query_repr_emit()
574 &ChecksumCapabilities::default(), in test_report_repr_emit()
Dudp.rs427 &ChecksumCapabilities::default(), in test_parse()
445 &ChecksumCapabilities::default(), in test_emit()
458 &ChecksumCapabilities::default(), in test_checksum_omitted()
Dicmpv6.rs841 &ChecksumCapabilities::default(), in test_echo_repr_parse()
856 &ChecksumCapabilities::default(), in test_echo_emit()
894 &ChecksumCapabilities::default(), in test_too_big_repr_parse()
909 &ChecksumCapabilities::default(), in test_too_big_emit()
Dicmpv4.rs558 match Repr::parse(self, &ChecksumCapabilities::default()) { in fmt()
682 let repr = Repr::parse(&packet, &ChecksumCapabilities::default()).unwrap(); in test_echo_parse()
691 repr.emit(&mut packet, &ChecksumCapabilities::default()); in test_echo_emit()
Dndisc.rs570 &ChecksumCapabilities::default() in test_router_advert_repr_parse()
585 &ChecksumCapabilities::default(), in test_router_advert_repr_emit()
Dipv4.rs897 let repr = Repr::parse(&packet, &ChecksumCapabilities::default()).unwrap(); in test_parse()
910 Repr::parse(&packet, &ChecksumCapabilities::default()), in test_parse_bad_version()
927 repr.emit(&mut packet, &ChecksumCapabilities::default()); in test_emit()
/smoltcp-0.9.1/src/iface/
Dsocket_meta.rs16 #[default]
Dsocket_set.rs64 let mut meta = Meta::default(); in add()
/smoltcp-0.9.1/examples/
Dloopback.rs117 let mut sockets: [_; 2] = Default::default(); in main()

12