Home
last modified time | relevance | path

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

/smoltcp-0.9.1/src/wire/
Dudp.rs86 pub fn dst_port(&self) -> u16 { in dst_port() method
214 pub dst_port: u16, field
229 if packet.dst_port() == 0 { in parse()
244 dst_port: packet.dst_port(), in parse()
263 packet.set_dst_port(self.dst_port); in emit_header()
281 packet.set_dst_port(self.dst_port); in emit()
302 self.dst_port(), in fmt()
310 write!(f, "UDP src={} dst={}", self.src_port, self.dst_port) in fmt()
358 assert_eq!(packet.dst_port(), 53); in test_deconstruct()
415 dst_port: 53, in packet_repr()
Dsixlowpan.rs1808 pub fn dst_port(&self) -> u16 { in dst_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()
1917 NetworkEndian::write_u16(&mut data[idx..idx + 2], dst_port); in set_ports()
1925 data[idx] = (dst_port - 0xf000) as u8; in set_ports()
1933 NetworkEndian::write_u16(&mut data[idx..idx + 2], dst_port); in set_ports()
1975 packet.dst_port(), in parse()
1989 dst_port: packet.dst_port(), in parse()
2000 match (self.src_port, self.dst_port) { in header_len()
[all …]
Dtcp.rs166 pub fn dst_port(&self) -> u16 { in dst_port() method
777 pub dst_port: u16, field
804 if packet.dst_port() == 0 { in parse()
851 packet.dst_port() in parse()
867 dst_port: packet.dst_port(), in parse()
925 packet.set_dst_port(self.dst_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()
1110 assert_eq!(packet.dst_port(), 80); in test_deconstruct()
1179 dst_port: 80, in packet_repr()
/smoltcp-0.9.1/benches/
Dbench.rs35 dst_port: 80, in bench_emit_tcp()
65 dst_port: 80, in bench_emit_udp()
/smoltcp-0.9.1/src/socket/
Dudp.rs374 if self.endpoint.port != repr.dst_port { in accepts()
456 dst_port: remote_endpoint.port, in dispatch()
567 dst_port: REMOTE_PORT,
572 dst_port: LOCAL_PORT,
776 udp_repr.dst_port += 1; in test_doesnt_accept_wrong_port()
817 dst_port: LOCAL_PORT, in test_process_empty_payload()
Ddns.rs364 udp_repr.dst_port in process()
392 if udp_repr.dst_port != pq.port || p.transaction_id() != pq.txid { in process()
576 let dst_port = match pq.mdns { in dispatch() localVariable
584 dst_port, in dispatch()
Ddhcpv4.rs286 assert!(repr.src_port == self.server_port && repr.dst_port == self.client_port); in process()
547 dst_port: self.server_port, in dispatch()
861 dst_port: DHCP_SERVER_PORT,
865 dst_port: DHCP_CLIENT_PORT,
873 dst_port: DIFFERENT_SERVER_PORT,
877 dst_port: DIFFERENT_CLIENT_PORT,
Dtcp.rs1170 src_port: repr.dst_port, in reply()
1171 dst_port: repr.src_port, in reply()
1296 && repr.dst_port == tuple.local.port in accepts()
1305 addr_ok && repr.dst_port != 0 && repr.dst_port == self.listen_endpoint.port in accepts()
1551 local: IpEndpoint::new(ip_repr.dst_addr(), repr.dst_port), in process()
2047 dst_port: tuple.remote.port, in dispatch()
2364 dst_port: LOCAL_PORT,
2384 dst_port: REMOTE_PORT,
6904 dst_port: LOCAL_PORT + 1, in test_doesnt_accept_wrong_port()
Dicmp.rs607 dst_port: 9090,
/smoltcp-0.9.1/src/iface/interface/
Dtests.rs330 dst_port: 68, in test_icmp_error_port_unreachable()
446 dst_port: 68, in test_handle_udp_broadcast()
598 dst_port: 68, in test_icmp_reply_size()
1223 dst_port: 68, in test_raw_socket_no_reply()
1309 dst_port: 68, in test_raw_socket_with_udp_socket()
1665 dst_port: 1234, in test_sixlowpan_udp_with_fragmentation()
Dipv4.rs86 && udp_packet.dst_port() == dhcp_socket.client_port in process_ipv4()