/smoltcp-0.9.1/src/iface/interface/ |
D | ipv4.rs | 88 let (src_addr, dst_addr) = (ip_repr.src_addr(), ip_repr.dst_addr()); in process_ipv4() 92 &dst_addr, in process_ipv4() 104 if !self.has_ip_addr(ipv4_repr.dst_addr) in process_ipv4() 105 && !self.has_multicast_group(ipv4_repr.dst_addr) in process_ipv4() 106 && !self.is_broadcast_v4(ipv4_repr.dst_addr) in process_ipv4() 111 || !ipv4_repr.dst_addr.is_unicast() in process_ipv4() 114 .lookup(&IpAddress::Ipv4(ipv4_repr.dst_addr), self.now) in process_ipv4() 133 &ipv4_repr.dst_addr.into(), in process_ipv4() 299 } else if self.is_unicast_v4(ipv4_repr.dst_addr) { in icmpv4_reply() 302 src_addr: ipv4_repr.dst_addr, in icmpv4_reply() [all …]
|
D | tests.rs | 156 dst_addr: Ipv4Address::BROADCAST, in test_no_icmp_no_unicast_ipv4() 190 dst_addr: Ipv6Address::LINK_LOCAL_ALL_NODES, in test_no_icmp_no_unicast_ipv6() 215 dst_addr: Ipv4Address([0x7f, 0x00, 0x00, 0x01]), in test_icmp_error_no_payload() 231 dst_addr: Ipv4Address([0x7f, 0x00, 0x00, 0x01]), in test_icmp_error_no_payload() 242 dst_addr: Ipv4Address([0x7f, 0x00, 0x00, 0x02]), in test_icmp_error_no_payload() 335 dst_addr: Ipv4Address([0x7f, 0x00, 0x00, 0x01]), in test_icmp_error_port_unreachable() 345 &ip_repr.dst_addr(), in test_icmp_error_port_unreachable() 359 dst_addr: Ipv4Address([0x7f, 0x00, 0x00, 0x01]), in test_icmp_error_port_unreachable() 369 dst_addr: Ipv4Address([0x7f, 0x00, 0x00, 0x02]), in test_icmp_error_port_unreachable() 388 dst_addr: Ipv4Address::BROADCAST, in test_icmp_error_port_unreachable() [all …]
|
D | sixlowpan.rs | 169 ieee802154_repr.dst_addr, in decompress_sixlowpan() 187 &iphc_repr.dst_addr, in decompress_sixlowpan() 214 dst_addr: iphc_repr.dst_addr, in decompress_sixlowpan() 236 &iphc_repr.dst_addr, in decompress_sixlowpan() 275 let (src_addr, dst_addr) = match (ip_repr.src_addr(), ip_repr.dst_addr()) { in dispatch_ieee802154() 276 (IpAddress::Ipv6(src_addr), IpAddress::Ipv6(dst_addr)) => (src_addr, dst_addr), in dispatch_ieee802154() 294 dst_addr: Some(ll_dst_a), in dispatch_ieee802154() 303 dst_addr, in dispatch_ieee802154() 392 &iphc_repr.dst_addr, in dispatch_ieee802154() 404 &iphc_repr.dst_addr.into(), in dispatch_ieee802154() [all …]
|
D | mod.rs | 134 dst_addr: Ipv4Address::default(), in new() 178 dst_addr: Ipv4Address::default(), in reset() 375 &_ip_repr.dst_addr(), in emit_payload() 385 &_ip_repr.dst_addr(), in emit_payload() 413 &_ip_repr.dst_addr(), in emit_payload() 421 &_ip_repr.dst_addr(), in emit_payload() 911 neighbor_addr = Some(response.ip_repr().dst_addr()); in socket_egress() 1071 pub(crate) fn get_source_address(&mut self, dst_addr: IpAddress) -> Option<IpAddress> { in get_source_address() 1072 let v = dst_addr.version(); in get_source_address() 1425 let (src_addr, dst_addr) = (ip_repr.src_addr(), ip_repr.dst_addr()); in process_tcp() [all …]
|
D | ipv6.rs | 64 &ipv6_repr.dst_addr.into(), in process_nxt_hdr() 114 &ip_repr.dst_addr(), in process_icmpv6() 227 if self.has_solicited_node(ip_repr.dst_addr) && self.has_ip_addr(target_addr) { in process_ndisc() 236 dst_addr: ip_repr.src_addr, in process_ndisc() 294 if ipv6_repr.dst_addr.is_unicast() { in icmpv6_reply() 296 src_addr: ipv6_repr.dst_addr, in icmpv6_reply() 297 dst_addr: ipv6_repr.src_addr, in icmpv6_reply()
|
D | ethernet.rs | 23 if !eth_frame.dst_addr().is_broadcast() in process_ethernet() 24 && !eth_frame.dst_addr().is_multicast() in process_ethernet() 25 && HardwareAddress::Ethernet(eth_frame.dst_addr()) != self.hardware_addr.unwrap() in process_ethernet()
|
D | igmp.rs | 229 && ipv4_repr.dst_addr == Ipv4Address::MULTICAST_ALL_SYSTEMS in process_igmp() 252 if self.has_multicast_group(group_addr) && ipv4_repr.dst_addr == group_addr { in process_igmp()
|
/smoltcp-0.9.1/src/socket/ |
D | icmp.rs | 385 ) if endpoint.addr.is_none() || endpoint.addr == Some(ip_repr.dst_addr()) => { in accepts() 390 &header.dst_addr.into(), in accepts() 404 ) if endpoint.addr.is_none() || endpoint.addr == Some(ip_repr.dst_addr()) => { in accepts() 409 &header.dst_addr.into(), in accepts() 470 &ip_repr.dst_addr(), in process() 496 IpAddress::Ipv4(dst_addr) => { in dispatch() 497 let src_addr = match cx.get_source_address_ipv4(dst_addr) { in dispatch() 520 dst_addr, in dispatch() 528 IpAddress::Ipv6(dst_addr) => { in dispatch() 529 let src_addr = match cx.get_source_address_ipv6(dst_addr) { in dispatch() [all …]
|
D | udp.rs | 378 && self.endpoint.addr != Some(ip_repr.dst_addr()) in accepts() 379 && !ip_repr.dst_addr().is_broadcast() in accepts() 380 && !ip_repr.dst_addr().is_multicast() in accepts() 543 dst_addr: REMOTE_ADDR, 551 dst_addr: LOCAL_ADDR, 559 dst_addr: OTHER_ADDR, 755 dst_addr: REMOTE_ADDR, in test_set_hop_limit()
|
D | dhcpv4.rs | 552 dst_addr: Ipv4Address::BROADCAST, in dispatch() 567 ipv4_repr.dst_addr, in dispatch() 595 ipv4_repr.dst_addr, in dispatch() 622 ipv4_repr.dst_addr = state.config.server.address; in dispatch() 626 net_debug!("DHCP send renew to {}: {:?}", ipv4_repr.dst_addr, dhcp_repr); in dispatch() 829 dst_addr: Ipv4Address::BROADCAST, 837 dst_addr: Ipv4Address::BROADCAST, 845 dst_addr: MY_IP, 853 dst_addr: SERVER_IP,
|
D | dns.rs | 587 let dst_addr = servers[pq.server_idx]; in dispatch() localVariable 588 let src_addr = cx.get_source_address(dst_addr).unwrap(); // TODO remove unwrap in dispatch() 591 dst_addr, in dispatch() 600 ip_repr.dst_addr(), in dispatch()
|
D | raw.rs | 444 dst_addr: Ipv4Address([10, 0, 0, 2]), 478 dst_addr: Ipv6Address([
|
D | tcp.rs | 1183 ip_repr.dst_addr(), in reply() 1295 ip_repr.dst_addr() == tuple.local.addr in accepts() 1302 Some(addr) => ip_repr.dst_addr() == addr, in accepts() 1551 local: IpEndpoint::new(ip_repr.dst_addr(), repr.dst_port), in process() 2357 dst_addr: REMOTE_ADDR, 2377 dst_addr: REMOTE_ADDR, 2427 dst_addr: LOCAL_ADDR, in send() 2457 assert_eq!(ip_repr.dst_addr(), REMOTE_ADDR.into()); in recv() 6931 dst_addr: LOCAL_ADDR, in test_doesnt_accept_wrong_ip() 6940 dst_addr: LOCAL_ADDR, in test_doesnt_accept_wrong_ip() [all …]
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | sixlowpan_packet.rs | 79 &iphc_repr.dst_addr, 93 &iphc_repr.dst_addr, 143 &iphc_repr.dst_addr.into_address(), 151 &iphc_repr.dst_addr.into_address(), 162 &iphc_repr.dst_addr.into_address(), 171 &iphc_repr.dst_addr.into_address(), 202 &iphc_repr.dst_addr.into_address(), 211 &iphc_repr.dst_addr.into_address(),
|
/smoltcp-0.9.1/src/wire/ |
D | ethernet.rs | 146 pub fn dst_addr(&self) -> Address { in dst_addr() method 218 self.dst_addr(), in fmt() 264 pub dst_addr: Address, field 274 dst_addr: frame.dst_addr(), in parse() 287 frame.set_dst_addr(self.dst_addr); in emit() 332 frame.dst_addr(), in test_deconstruct() 378 frame.dst_addr(), in test_deconstruct()
|
D | ip.rs | 571 dst_addr: Address, in new() 576 match (src_addr, dst_addr) { in new() 578 (Address::Ipv4(src_addr), Address::Ipv4(dst_addr)) => Self::Ipv4(Ipv4Repr { in new() 580 dst_addr, in new() 586 (Address::Ipv6(src_addr), Address::Ipv6(dst_addr)) => Self::Ipv6(Ipv6Repr { in new() 588 dst_addr, in new() 619 pub const fn dst_addr(&self) -> Address { in dst_addr() method 622 Repr::Ipv4(repr) => Address::Ipv4(repr.dst_addr), in dst_addr() 624 Repr::Ipv6(repr) => Address::Ipv6(repr.dst_addr), in dst_addr() 755 dst_addr: &Address, in pseudo_header() [all …]
|
D | udp.rs | 113 pub fn verify_checksum(&self, src_addr: &IpAddress, dst_addr: &IpAddress) -> bool { in verify_checksum() 128 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Udp, self.len() as u32), in verify_checksum() 178 pub fn fill_checksum(&mut self, src_addr: &IpAddress, dst_addr: &IpAddress) { in fill_checksum() 183 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Udp, self.len() as u32), in fill_checksum() 222 dst_addr: &IpAddress, in parse() 233 if checksum_caps.udp.rx() && !packet.verify_checksum(src_addr, dst_addr) { in parse() 234 match (src_addr, dst_addr) { in parse() 273 dst_addr: &IpAddress, in emit() 286 packet.fill_checksum(src_addr, dst_addr) in emit()
|
D | ieee802154.rs | 391 pub fn dst_addr(&self) -> Option<Address> { in dst_addr() method 747 self.dst_addr(), in fmt() 766 pub dst_addr: Option<Address>, field 786 dst_addr: packet.dst_addr(), in parse() 796 + match self.dst_addr { in buffer_len() 825 if let Some(dst_addr) = self.dst_addr { in emit() 826 frame.set_dst_addr(dst_addr); in emit() 862 dst_addr: Some(Address::BROADCAST), in prepare_frame() 884 assert_eq!(frame.dst_addr(), Some(Address::BROADCAST)); in prepare_frame() 922 dst_addr -> Some(Address::Extended([0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00])), [all …]
|
D | sixlowpan.rs | 357 ll_dst_addr: ieee802154_repr.dst_addr.unwrap(), in get_key() 744 pub fn dst_addr(&self) -> Result<UnresolvedAddress> { in dst_addr() method 1055 dst_addr: ipv6::Address, in set_dst_address() 1062 let dst = dst_addr.as_bytes(); in set_dst_address() 1063 if dst_addr.is_multicast() { in set_dst_address() 1091 } else if dst_addr.is_link_local() { in set_dst_address() 1152 pub dst_addr: ipv6::Address, field 1182 let dst_addr = packet.dst_addr()?.resolve(ll_dst_addr, addr_context)?; in parse() localVariable 1187 dst_addr, in parse() 1245 let dst = self.dst_addr.as_bytes(); in buffer_len() [all …]
|
D | icmpv6.rs | 358 pub fn verify_checksum(&self, src_addr: &IpAddress, dst_addr: &IpAddress) -> bool { in verify_checksum() 365 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Icmpv6, data.len() as u32), in verify_checksum() 472 pub fn fill_checksum(&mut self, src_addr: &IpAddress, dst_addr: &IpAddress) { in fill_checksum() 477 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Icmpv6, data.len() as u32), in fill_checksum() 545 dst_addr: &IpAddress, in parse() 564 dst_addr: ip_packet.dst_addr(), in parse() 572 if checksum_caps.icmpv6.rx() && !packet.verify_checksum(src_addr, dst_addr) { in parse() 650 dst_addr: &IpAddress, in emit() 740 packet.fill_checksum(src_addr, dst_addr); in emit() 794 dst_addr: Ipv6Address([ in too_big_packet_repr()
|
D | ipv4.rs | 34 dst_addr: Address, field 443 pub fn dst_addr(&self) -> Address { in dst_addr() method 466 dst_addr: self.dst_addr(), in get_key() 624 pub dst_addr: Address, field 658 dst_addr: packet.dst_addr(), in parse() 691 packet.set_dst_addr(self.dst_addr); in emit() 713 self.dst_addr(), in fmt() 753 self.src_addr, self.dst_addr, self.next_header in fmt() 824 assert_eq!(packet.dst_addr(), Address([0x21, 0x22, 0x23, 0x24])); in test_deconstruct() 887 dst_addr: Address([0x21, 0x22, 0x23, 0x24]), in packet_repr()
|
D | ipv6.rs | 547 pub fn dst_addr(&self) -> Address { in dst_addr() method 663 pub dst_addr: Address, field 682 dst_addr: packet.dst_addr(), in parse() 706 packet.set_dst_addr(self.dst_addr); in emit() 715 self.src_addr, self.dst_addr, self.next_header, self.hop_limit in fmt() 1081 dst_addr: Address::LINK_LOCAL_ALL_NODES, in packet_repr() 1106 assert_eq!(packet.dst_addr(), Address::LINK_LOCAL_ALL_NODES); in test_packet_deconstruction()
|
D | tcp.rs | 337 pub fn verify_checksum(&self, src_addr: &IpAddress, dst_addr: &IpAddress) -> bool { in verify_checksum() 344 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Tcp, data.len() as u32), in verify_checksum() 558 pub fn fill_checksum(&mut self, src_addr: &IpAddress, dst_addr: &IpAddress) { in fill_checksum() 563 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Tcp, data.len() as u32), in fill_checksum() 794 dst_addr: &IpAddress, in parse() 808 if checksum_caps.tcp.rx() && !packet.verify_checksum(src_addr, dst_addr) { in parse() 850 dst_addr, in parse() 919 dst_addr: &IpAddress, in emit() 965 packet.fill_checksum(src_addr, dst_addr) in emit()
|
D | icmpv4.rs | 434 dst_addr: ip_packet.dst_addr(), in parse() 457 dst_addr: ip_packet.dst_addr(), in parse()
|
/smoltcp-0.9.1/benches/ |
D | bench.rs | 87 dst_addr: Ipv4Address([192, 168, 1, 2]), in bench_emit_ipv4() 105 dst_addr: Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2]), in bench_emit_ipv6()
|