Home
last modified time | relevance | path

Searched refs:src_port (Results 1 – 11 of 11) sorted by relevance

/smoltcp-0.9.1/src/wire/
Dudp.rs79 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()
Dsixlowpan.rs1780 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 …]
Dtcp.rs159 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/
Dbench.rs34 src_port: 48896, in bench_emit_tcp()
64 src_port: 48896, in bench_emit_udp()
/smoltcp-0.9.1/src/socket/
Dudp.rs401 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()
Ddns.rs341 (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()
Ddhcpv4.rs286 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,
Dicmp.rs393 Ok(repr) => endpoint.port == repr.src_port, in accepts()
412 Ok(repr) => endpoint.port == repr.src_port, in accepts()
606 src_port: 53,
Dtcp.rs1170 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/
Dtests.rs329 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()
Dipv4.rs85 if udp_packet.src_port() == dhcp_socket.server_port in process_ipv4()