/smoltcp-0.9.1/src/wire/ |
D | udp.rs | 26 pub const fn PAYLOAD(length: u16) -> Field { in PAYLOAD() 79 pub fn src_port(&self) -> u16 { in src_port() argument 86 pub fn dst_port(&self) -> u16 { in dst_port() argument 93 pub fn len(&self) -> u16 { in len() argument 100 pub fn checksum(&self) -> u16 { in checksum() argument 147 pub fn set_src_port(&mut self, value: u16) { in set_src_port() argument 154 pub fn set_dst_port(&mut self, value: u16) { in set_dst_port() argument 161 pub fn set_len(&mut self, value: u16) { in set_len() argument 168 pub fn set_checksum(&mut self, value: u16) { in set_checksum() argument 213 pub src_port: u16, [all …]
|
D | ip.rs | 103 pub fn v6(a0: u16, a1: u16, a2: u16, a3: u16, a4: u16, a5: u16, a6: u16, a7: u16) -> Address { in v6() argument 384 pub port: u16, 389 pub const fn new(addr: Address, port: u16) -> Endpoint { in new() 437 impl<T: Into<Address>> From<(T, u16)> for Endpoint { 438 fn from((addr, port): (T, u16)) -> Endpoint { in from() 455 pub port: u16, 512 impl From<u16> for ListenEndpoint { 513 fn from(port: u16) -> ListenEndpoint { in from() 527 impl<T: Into<Address>> From<(T, u16)> for ListenEndpoint { 528 fn from((addr, port): (T, u16)) -> ListenEndpoint { in from() [all …]
|
D | tcp.rs | 94 pub const FLG_FIN: u16 = 0x001; 95 pub const FLG_SYN: u16 = 0x002; 96 pub const FLG_RST: u16 = 0x004; 97 pub const FLG_PSH: u16 = 0x008; 98 pub const FLG_ACK: u16 = 0x010; 99 pub const FLG_URG: u16 = 0x020; 100 pub const FLG_ECE: u16 = 0x040; 101 pub const FLG_CWR: u16 = 0x080; 102 pub const FLG_NS: u16 = 0x100; 159 pub fn src_port(&self) -> u16 { in src_port() argument [all …]
|
D | dns.rs | 40 pub enum Type(u16) { 51 pub struct Flags: u16 { 76 const CLASS_IN: u16 = 1; 121 pub fn transaction_id(&self) -> u16 { in transaction_id() argument 143 pub fn question_count(&self) -> u16 { in question_count() argument 148 pub fn answer_record_count(&self) -> u16 { in answer_record_count() argument 153 pub fn authority_record_count(&self) -> u16 { in authority_record_count() argument 158 pub fn additional_record_count(&self) -> u16 { in additional_record_count() argument 219 pub fn set_transaction_id(&mut self, val: u16) { in set_transaction_id() argument 235 let val = (val as u16) << 11; in set_opcode() [all …]
|
D | mld.rs | 43 pub fn max_resp_code(&self) -> u16 { in max_resp_code() argument 78 pub fn num_srcs(&self) -> u16 { in num_srcs() argument 91 pub fn nr_mcast_addr_rcrds(&self) -> u16 { in nr_mcast_addr_rcrds() argument 104 pub fn set_max_resp_code(&mut self, code: u16) { in set_max_resp_code() argument 148 pub fn set_num_srcs(&mut self, value: u16) { in set_num_srcs() argument 161 pub fn set_nr_mcast_addr_rcrds(&mut self, value: u16) { in set_nr_mcast_addr_rcrds() argument 228 pub fn num_srcs(&self) -> u16 { in num_srcs() argument 271 pub fn set_num_srcs(&mut self, num_srcs: u16) { in set_num_srcs() argument 302 max_resp_code: u16, 307 num_srcs: u16, [all …]
|
D | icmpv4.rs | 237 pub fn checksum(&self) -> u16 { in checksum() argument 247 pub fn echo_ident(&self) -> u16 { in echo_ident() argument 257 pub fn echo_seq_no(&self) -> u16 { in echo_seq_no() argument 313 pub fn set_checksum(&mut self, value: u16) { in set_checksum() argument 323 pub fn set_echo_ident(&mut self, value: u16) { in set_echo_ident() argument 333 pub fn set_echo_seq_no(&mut self, value: u16) { in set_echo_seq_no() argument 371 ident: u16, 372 seq_no: u16, 376 ident: u16, 377 seq_no: u16,
|
D | sixlowpan.rs | 220 pub(crate) datagram_size: u16, 221 pub(crate) datagram_tag: u16, 325 pub fn datagram_size(&self) -> u16 { in datagram_size() argument 331 pub fn datagram_tag(&self) -> u16 { in datagram_tag() argument 387 fn set_datagram_size(&mut self, size: u16) { in set_datagram_size() argument 395 fn set_datagram_tag(&mut self, tag: u16) { in set_datagram_tag() argument 410 FirstFragment { size: u16, tag: u16 }, 411 Fragment { size: u16, tag: u16, offset: u8 }, 500 raw = (raw & !($mask << $shift)) | ((val as u16) << $shift); 667 pub fn flow_label_field(&self) -> Option<u16> { in flow_label_field() argument [all …]
|
D | ipv6.rs | 72 a0: u16, in new() argument 73 a1: u16, in new() argument 74 a2: u16, in new() argument 75 a3: u16, in new() argument 76 a4: u16, in new() argument 77 a5: u16, in new() argument 78 a6: u16, in new() argument 79 a7: u16, in new() argument 115 pub fn from_parts(data: &[u16]) -> Address { in from_parts() 128 pub fn write_parts(&self, data: &mut [u16]) { in write_parts() argument [all …]
|
D | dhcpv4.rs | 12 pub const SERVER_PORT: u16 = 67; 13 pub const CLIENT_PORT: u16 = 68; 41 pub struct Flags: u16 { 277 Hardware::from(u16::from(data[field::HTYPE])) in hardware_type() 315 pub fn secs(&self) -> u16 { in secs() argument 445 let number: u16 = value.into(); in set_hardware_type() 446 … assert!(number <= u16::from(u8::max_value())); // TODO: Replace with TryFrom when it's stable in set_hardware_type() 486 pub fn set_secs(&mut self, value: u16) { in set_secs() argument 600 pub secs: u16, 651 pub max_size: Option<u16>, [all …]
|
D | icmpv6.rs | 296 pub fn checksum(&self) -> u16 { in checksum() argument 303 pub fn echo_ident(&self) -> u16 { in echo_ident() argument 310 pub fn echo_seq_no(&self) -> u16 { in echo_seq_no() argument 426 pub fn set_checksum(&mut self, value: u16) { in set_checksum() argument 436 pub fn set_echo_ident(&mut self, value: u16) { in set_echo_ident() argument 446 pub fn set_echo_seq_no(&mut self, value: u16) { in set_echo_seq_no() argument 526 ident: u16, 527 seq_no: u16, 531 ident: u16, 532 seq_no: u16,
|
D | ipv4.rs | 32 id: u16, 338 } else if self.header_len() as u16 > self.total_len() { in check_len() 380 pub fn total_len(&self) -> u16 { in total_len() argument 387 pub fn ident(&self) -> u16 { in ident() argument 408 pub fn frag_offset(&self) -> u16 { in frag_offset() argument 429 pub fn checksum(&self) -> u16 { in checksum() argument 511 pub fn set_total_len(&mut self, value: u16) { in set_total_len() argument 518 pub fn set_ident(&mut self, value: u16) { in set_ident() argument 552 pub fn set_frag_offset(&mut self, value: u16) { in set_frag_offset() argument 575 pub fn set_checksum(&mut self, value: u16) { in set_checksum() argument [all …]
|
D | ipv6fragment.rs | 80 pub fn frag_offset(&self) -> u16 { in frag_offset() argument 124 pub fn set_frag_offset(&mut self, value: u16) { in set_frag_offset() argument 127 let raw = ((value & 0x1fff) << 3) | ((data[3] & 0x7) as u16); in set_frag_offset() 168 pub frag_offset: u16,
|
D | ieee802154.rs | 70 pub struct Pan(pub u16); 225 raw |= ((val as u16) << $bit); 601 raw = (raw & !(0b111)) | (u8::from(frame_type) as u16 & 0b111); in set_frame_type() 616 raw = (raw & !(0b11 << 12)) | ((u8::from(version) as u16 & 0b11) << 12); in set_frame_version() 666 raw = (raw & !(0b11 << 10)) | ((u8::from(value) as u16 & 0b11) << 10); in set_dst_addressing_mode() 721 raw = (raw & !(0b11 << 14)) | ((u8::from(value) as u16 & 0b11) << 14); in set_src_addressing_mode()
|
D | igmp.rs | 106 pub fn checksum(&self) -> u16 { in checksum() argument 150 pub fn set_checksum(&mut self, value: u16) { in set_checksum() argument
|
D | arp.rs | 10 pub enum Hardware(u16) { 17 pub enum Operation(u16) {
|
/smoltcp-0.9.1/src/ |
D | rand.rs | 27 pub(crate) fn rand_u16(&mut self) -> u16 { in rand_u16() argument 29 (n ^ (n >> 16)) as u16 in rand_u16() 32 pub(crate) fn rand_source_port(&mut self) -> u16 { in rand_source_port() argument
|
D | parsers.rs | 151 fn accept_ipv4_mapped_ipv6_part(&mut self, parts: &mut [u16], idx: &mut usize) -> Result<()> { in accept_ipv4_mapped_ipv6_part() argument 154 parts[*idx] = ((octets[0] as u16) << 8) | (octets[1] as u16); in accept_ipv4_mapped_ipv6_part() 156 parts[*idx] = ((octets[2] as u16) << 8) | (octets[3] as u16); in accept_ipv4_mapped_ipv6_part() 165 (head, tail): (&mut [u16; 8], &mut [u16; 6]), in accept_ipv6_part() 195 head[*head_idx] = part as u16; 208 tail[*tail_idx] = part as u16; 331 port: port as u16, in accept_ipv4_endpoint() 346 port: port as u16, in accept_ipv6_endpoint()
|
/smoltcp-0.9.1/src/phy/sys/ |
D | raw_socket.rs | 55 sll_family: libc::AF_PACKET as u16, in bind_interface() 56 sll_protocol: self.protocol.to_be() as u16, in bind_interface()
|
/smoltcp-0.9.1/src/socket/ |
D | dhcpv4.rs | 69 retry: u16, 109 pub request_retries: u16, 153 pub(crate) server_port: u16, 156 pub(crate) client_port: u16, 262 pub fn set_ports(&mut self, server_port: u16, client_port: u16) { in set_ports() argument 537 max_size: Some((cx.ip_mtu() - MAX_IPV4_HEADER_LEN - UDP_HEADER_LEN) as u16), in dispatch() 868 const DIFFERENT_CLIENT_PORT: u16 = 6800; 869 const DIFFERENT_SERVER_PORT: u16 = 6700;
|
D | dns.rs | 16 const DNS_PORT: u16 = 53; 17 const MDNS_DNS_PORT: u16 = 5353; 82 port: u16, // UDP port (src for request, dst for response) 83 txid: u16, // transaction ID
|
/smoltcp-0.9.1/src/iface/interface/ |
D | mod.rs | 100 frag_offset: u16, 102 ident: u16, 108 datagram_size: u16, 110 datagram_tag: u16, 249 ipv4_id: u16, 254 tag: u16, 406 tcp_repr.window_len = max_window_size as u16; in emit_payload() 1220 fn get_ipv4_ident(&mut self) -> u16 { in get_ipv4_ident() argument 1227 fn get_sixlowpan_fragment_tag(&mut self) -> u16 { in get_sixlowpan_fragment_tag() argument 1822 frag.ipv4.frag_offset = (first_frag_ip_len - ip_header_len) as u16; in dispatch_ip()
|
/smoltcp-0.9.1/examples/ |
D | ping.rs | 160 if socket.can_send() && seq_no < count as u16 && send_at <= timestamp { in main() 248 if seq_no == count as u16 && waiting_queue.is_empty() { in main()
|
D | client.rs | 29 let port = u16::from_str(&matches.free[1]).expect("invalid port format"); in main()
|
D | httpclient.rs | 84 let local_port = 49152 + rand::random::<u16>() % 16384; in main()
|
D | multicast.rs | 14 const MDNS_PORT: u16 = 5353;
|