/smoltcp-0.9.1/src/wire/ |
D | udp.rs | 79 pub fn src_port(&self) -> u16 { in src_port() method 213 pub src_port: u16, field 243 src_port: packet.src_port(), in parse() 262 packet.set_src_port(self.src_port); in emit_header() 280 packet.set_src_port(self.src_port); in emit() 301 self.src_port(), in fmt() 310 write!(f, "UDP src={} dst={}", self.src_port, self.dst_port) in fmt() 357 assert_eq!(packet.src_port(), 48896); in test_deconstruct() 414 src_port: 48896, in packet_repr()
|
D | sixlowpan.rs | 1780 pub fn src_port(&self) -> u16 { in src_port() method 1900 fn set_ports(&mut self, src_port: u16, dst_port: u16) { in set_ports() 1903 match (src_port, dst_port) { in set_ports() 1908 data[idx] = (((src_port - 0xf0b0) as u8) << 4) & ((dst_port - 0xf0b0) as u8); in set_ports() 1914 data[idx] = (src_port - 0xf000) as u8; in set_ports() 1923 NetworkEndian::write_u16(&mut data[idx..idx + 2], src_port); in set_ports() 1931 NetworkEndian::write_u16(&mut data[idx..idx + 2], src_port); in set_ports() 1974 packet.src_port(), in parse() 1988 src_port: packet.src_port(), in parse() 2000 match (self.src_port, self.dst_port) { in header_len() [all …]
|
D | tcp.rs | 159 pub fn src_port(&self) -> u16 { in src_port() method 776 pub src_port: u16, field 801 if packet.src_port() == 0 { in parse() 849 packet.src_port(), in parse() 866 src_port: packet.src_port(), in parse() 924 packet.set_src_port(self.src_port); in emit() 991 write!(f, "TCP src={} dst={}", self.src_port(), self.dst_port())?; in fmt() 1046 write!(f, "TCP src={} dst={}", self.src_port, self.dst_port)?; in fmt() 1109 assert_eq!(packet.src_port(), 48896); in test_deconstruct() 1178 src_port: 48896, in packet_repr()
|
/smoltcp-0.9.1/benches/ |
D | bench.rs | 34 src_port: 48896, in bench_emit_tcp() 64 src_port: 48896, in bench_emit_udp()
|
/smoltcp-0.9.1/src/socket/ |
D | udp.rs | 401 port: repr.src_port, in process() 455 src_port: endpoint.port, in dispatch() 566 src_port: LOCAL_PORT, 571 src_port: REMOTE_PORT, 816 src_port: REMOTE_PORT, in test_process_empty_payload()
|
D | dns.rs | 341 (udp_repr.src_port == DNS_PORT in accepts() 346 || (udp_repr.src_port == MDNS_DNS_PORT) in accepts() 583 src_port: pq.port, in dispatch() 601 udp_repr.src_port in dispatch()
|
D | dhcpv4.rs | 286 assert!(repr.src_port == self.server_port && repr.dst_port == self.client_port); in process() 546 src_port: self.client_port, in dispatch() 860 src_port: DHCP_CLIENT_PORT, 864 src_port: DHCP_SERVER_PORT, 872 src_port: DIFFERENT_CLIENT_PORT, 876 src_port: DIFFERENT_SERVER_PORT,
|
D | icmp.rs | 393 Ok(repr) => endpoint.port == repr.src_port, in accepts() 412 Ok(repr) => endpoint.port == repr.src_port, in accepts() 606 src_port: 53,
|
D | tcp.rs | 1170 src_port: repr.dst_port, in reply() 1171 dst_port: repr.src_port, in reply() 1298 && repr.src_port == tuple.remote.port in accepts() 1552 remote: IpEndpoint::new(ip_repr.src_addr(), repr.src_port), in process() 2046 src_port: tuple.local.port, in dispatch() 2363 src_port: REMOTE_PORT, 2383 src_port: LOCAL_PORT, 6912 src_port: REMOTE_PORT + 1, in test_doesnt_accept_wrong_port()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | tests.rs | 329 src_port: 67, in test_icmp_error_port_unreachable() 445 src_port: 67, in test_handle_udp_broadcast() 597 src_port: 67, in test_icmp_reply_size() 1222 src_port: 67, in test_raw_socket_no_reply() 1308 src_port: 67, in test_raw_socket_with_udp_socket() 1664 src_port: 1234, in test_sixlowpan_udp_with_fragmentation()
|
D | ipv4.rs | 85 if udp_packet.src_port() == dhcp_socket.server_port in process_ipv4()
|