Home
last modified time | relevance | path

Searched defs:bytes (Results 1 – 24 of 24) sorted by relevance

/smoltcp-0.9.1/benches/
Dbench.rs46 let mut bytes = vec![0xa5; repr.buffer_len()]; in bench_emit_tcp() localVariable
67 let mut bytes = vec![0xa5; repr.header_len() + PAYLOAD_BYTES.len()]; in bench_emit_udp() localVariable
92 let mut bytes = vec![0xa5; repr.buffer_len()]; in bench_emit_ipv4() localVariable
110 let mut bytes = vec![0xa5; repr.buffer_len()]; in bench_emit_ipv6() localVariable
/smoltcp-0.9.1/src/wire/
Dipv6hopbyhop.rs46 let bytes = length_field as usize * 8 + 8; in OPTIONS() localVariable
269 let mut bytes = vec![]; in test_overlong() localVariable
282 let mut bytes = vec![]; in test_overlong() localVariable
298 let mut bytes = vec![]; in test_header_len_overflow() localVariable
305 let mut bytes = vec![]; in test_header_len_overflow() localVariable
345 let mut bytes = [0u8; 8]; in test_repr_emit() localVariable
355 let mut bytes = [0u8; 16]; in test_repr_emit() localVariable
Dipv6option.rs362 let bytes = [0u8]; in test_check_len() localVariable
415 let bytes: [u8; 2] = [0x1, 0x0]; in test_option_deconstruct() localVariable
427 let bytes: [u8; 10] = [0x1, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff]; in test_option_deconstruct() localVariable
434 let bytes: [u8; 1] = [0xff]; in test_option_deconstruct() localVariable
473 let mut bytes = [255u8; 1]; // don't assume bytes are initialized to zero in test_option_emit() localVariable
479 let mut bytes = [255u8; 3]; // don't assume bytes are initialized to zero in test_option_emit() localVariable
490 let mut bytes = [254u8; 5]; // don't assume bytes are initialized to zero in test_option_emit() localVariable
Dipv6.rs106 let mut bytes = [0; ADDR_SIZE]; in from_bytes() localVariable
117 let mut bytes = [0; ADDR_SIZE]; in from_parts() localVariable
200 let mut bytes = [0u8; ADDR_SIZE]; localVariable
849 let mut bytes = [0u16; 8]; in test_write_parts() localVariable
1112 let mut bytes = [0xff; 52]; in test_packet_construction() localVariable
1147 let mut bytes = vec![]; in test_overlong() localVariable
1163 let mut bytes = vec![]; in test_total_len_overflow() localVariable
1179 let mut bytes = vec![0; 40]; in test_repr_parse_bad_version() localVariable
1189 let mut bytes = vec![0; 40]; in test_repr_parse_smaller_than_header() localVariable
1199 let mut bytes = vec![0; 40]; in test_repr_parse_smaller_than_payload() localVariable
[all …]
Dudp.rs368 let mut bytes = vec![0xa5; 12]; in test_construct() localVariable
381 let mut bytes = vec![0; 12]; in test_impossible_len() localVariable
390 let mut bytes = vec![0; 8]; in test_zero_checksum() localVariable
402 let mut bytes = vec![0; 8]; in test_no_checksum() localVariable
437 let mut bytes = vec![0xa5; repr.header_len() + PAYLOAD_BYTES.len()]; in test_emit() localVariable
Dndiscoption.rs667 let mut bytes = [0x00; 32]; in test_construct() localVariable
682 let bytes = [0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; in test_short_packet() localVariable
689 let mut bytes = [0x01, 0x01, 0x54, 0x52, 0x00, 0x12, 0x23, 0x34]; in test_repr_parse_link_layer_opt_ethernet() localVariable
709 let mut bytes = [ in test_repr_parse_link_layer_opt_ieee802154() localVariable
746 let mut bytes = [0x2a; 32]; in test_repr_emit_prefix_info() localVariable
761 let bytes = [0x05, 0x01, 0x00, 0x00, 0x00, 0x00, 0x05, 0xdc]; in test_repr_parse_mtu() localVariable
Dmld.rs463 let mut bytes = vec![0xff; 44]; in test_query_construct() localVariable
504 let mut bytes = vec![0xff; 44]; in test_record_construct() localVariable
553 let mut bytes = [0x2a; 44]; in test_query_repr_emit() localVariable
567 let mut bytes = [0x2a; 44]; in test_report_repr_emit() localVariable
Dethernet.rs40 let mut bytes = [0; 6]; in from_bytes() localVariable
73 let bytes = self.0; in fmt() localVariable
345 let mut bytes = vec![0xa5; 64]; in test_construct() localVariable
391 let mut bytes = vec![0xa5; 54]; in test_construct() localVariable
Dipv4.rs65 let mut bytes = [0; ADDR_SIZE]; in from_bytes() localVariable
129 let bytes = self.0; in fmt() localVariable
831 let mut bytes = vec![0xa5; 30]; in test_construct() localVariable
854 let mut bytes = vec![]; in test_overlong() localVariable
870 let mut bytes = vec![]; in test_total_len_overflow() localVariable
903 let mut bytes = vec![0; 24]; in test_parse_bad_version() localVariable
917 let mut bytes = vec![0; 40]; in test_parse_total_len_less_than_header_len() localVariable
925 let mut bytes = vec![0xa5; repr.buffer_len() + REPR_PAYLOAD_BYTES.len()]; in test_emit() localVariable
Dipv6routing.rs95 let bytes = length_field as usize * 8 + 8; in DATA() localVariable
652 let mut bytes = [0u8; 24]; in test_repr_emit() localVariable
657 let mut bytes = [0u8; 40]; in test_repr_emit() localVariable
662 let mut bytes = [0u8; 16]; in test_repr_emit() localVariable
Dicmpv4.rs660 let mut bytes = vec![0xa5; 12]; in test_echo_construct() localVariable
689 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_echo_emit() localVariable
697 let bytes = [0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; in test_check_len() localVariable
Dicmpv6.rs821 let mut bytes = vec![0xa5; 12]; in test_echo_construct() localVariable
850 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_echo_emit() localVariable
875 let mut bytes = vec![0xa5; 60]; in test_too_big_construct() localVariable
903 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_too_big_emit() localVariable
Dipv6fragment.rs289 let mut bytes = [0u8; 8]; in test_repr_emit() localVariable
300 let mut bytes = [0u8; 8]; in test_repr_emit() localVariable
Dndisc.rs546 let mut bytes = vec![0x0; 24]; in test_router_advert_construct() localVariable
579 let mut bytes = vec![0x2a; 24]; in test_router_advert_repr_emit() localVariable
Digmp.rs408 let mut bytes = vec![0xa5; 8]; in test_leave_construct() localVariable
419 let mut bytes = vec![0xa5; 8]; in test_report_construct() localVariable
Darp.rs416 let mut bytes = vec![0xa5; 28]; in test_construct() localVariable
453 let mut bytes = vec![0xa5; 28]; in test_emit() localVariable
Ddhcpv4.rs1087 let mut bytes = vec![0xa5; 276]; in test_construct_discover() localVariable
1208 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_emit_discover() localVariable
1222 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_emit_offer() localVariable
1241 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_emit_offer_dns() localVariable
1269 let mut bytes = vec![0xa5; 5]; in test_emit_dhcp_option() localVariable
Dsixlowpan.rs66 let mut bytes = [0; 16]; in resolve() localVariable
1316 let bytes = [ in iphc_fields() localVariable
1352 let bytes = [ in iphc_fields() localVariable
2057 let bytes = [0xe3, 0x06, 0x03, 0x00, 0xff, 0x00, 0x00, 0x00]; in ext_header_nhc_fields() localVariable
2087 let bytes = [0xf0, 0x16, 0x2e, 0x22, 0x3d, 0x28, 0xc4]; in udp_nhc_fields() localVariable
Dtcp.rs1131 let mut bytes = vec![0xa5; PACKET_BYTES.len()]; in test_construct() localVariable
1163 let mut bytes = vec![0; 20]; in test_impossible_len() localVariable
1210 let mut bytes = vec![0xa5; repr.buffer_len()]; in test_emit() localVariable
Dieee802154.rs148 let mut bytes = [0; 8]; localVariable
161 let mut bytes = [0; 16]; in as_link_local_address() localVariable
Ddns.rs443 let bytes = &[ in test_parse_name() localVariable
/smoltcp-0.9.1/src/socket/
Dicmp.rs675 let mut bytes = [0xff; 24]; in test_send_dispatch() localVariable
718 let mut bytes = [0xff; 24]; in test_set_hop_limit_v4() localVariable
757 let mut bytes = [0xff; 24]; in test_recv_process() localVariable
780 let mut bytes = [0xff; 20]; in test_accept_bad_id() localVariable
802 let mut bytes = [0xff; 18]; in test_accepts_udp() localVariable
842 let mut bytes = [0x00; 46]; in test_accepts_udp() localVariable
917 let mut bytes = vec![0xff; 24]; in test_send_dispatch() localVariable
965 let mut bytes = vec![0xff; 24]; in test_set_hop_limit() localVariable
1009 let mut bytes = [0xff; 24]; in test_recv_process() localVariable
1037 let mut bytes = [0xff; 20]; in test_accept_bad_id() localVariable
[all …]
/smoltcp-0.9.1/src/iface/interface/
Dtests.rs162 let mut bytes = vec![0u8; 54]; in test_no_icmp_no_unicast_ipv4() localVariable
196 let mut bytes = vec![0u8; 54]; in test_no_icmp_no_unicast_ipv6() localVariable
221 let mut bytes = vec![0u8; 34]; in test_icmp_error_no_payload() localVariable
532 let mut bytes = vec![0u8; ipv4_repr.buffer_len() + icmpv4_repr.buffer_len()]; in test_handle_ipv4_broadcast() localVariable
600 let mut bytes = vec![0xff; udp_repr.header_len() + MAX_PAYLOAD_LEN]; in test_icmp_reply_size() localVariable
961 let mut bytes = [0xff; 24]; in test_icmpv4_socket() localVariable
1057 let mut bytes = vec![0; 52]; in test_icmpv6_nxthdr_unknown() localVariable
1225 let mut bytes = vec![0xff; udp_repr.header_len() + PAYLOAD_LEN]; in test_raw_socket_no_reply() localVariable
1244 let mut bytes = vec![0u8; ipv4_repr.buffer_len() + udp_repr.header_len() + PAYLOAD_LEN]; in test_raw_socket_no_reply() localVariable
1311 let mut bytes = vec![0xff; udp_repr.header_len() + UDP_PAYLOAD.len()]; in test_raw_socket_with_udp_socket() localVariable
[all …]
/smoltcp-0.9.1/src/phy/
Dpcap_writer.rs44 let mut bytes = [0u8; 2]; in write_u16() localVariable
51 let mut bytes = [0u8; 4]; in write_u32() localVariable