/smoltcp-0.9.1/src/wire/ |
D | ip.rs | 16 Ipv4, enumerator 29 4 => Ok(Version::Ipv4), in of_packet() 41 Version::Ipv4 => write!(f, "IPv4"), in fmt() 87 Ipv4(Ipv4Address), enumerator 97 Address::Ipv4(Ipv4Address::new(a0, a1, a2, a3)) in v4() 111 Address::Ipv4(_) => Version::Ipv4, in version() 121 Address::Ipv4(addr) => addr.as_bytes(), in as_bytes() 131 Address::Ipv4(addr) => addr.is_unicast(), in is_unicast() 141 Address::Ipv4(addr) => addr.is_multicast(), in is_multicast() 151 Address::Ipv4(addr) => addr.is_broadcast(), in is_broadcast() [all …]
|
D | icmp.rs | 10 Ipv4(icmpv4::Repr<'a>), enumerator 17 Repr::Ipv4(s) in from()
|
D | ethernet.rs | 9 Ipv4 = 0x0800, 18 EtherType::Ipv4 => write!(f, "IPv4"), in fmt() 245 EtherType::Ipv4 => { in pretty_print() 339 assert_eq!(frame.ethertype(), EtherType::Ipv4); in test_deconstruct() 349 frame.set_ethertype(EtherType::Ipv4); in test_construct()
|
D | arp.rs | 280 (Hardware::Ethernet, Protocol::Ipv4, 6, 4) => Ok(Repr::EthernetIpv4 { in parse() 309 packet.set_protocol_type(Protocol::Ipv4); in emit() 398 assert_eq!(packet.protocol_type(), Protocol::Ipv4); in test_deconstruct() 419 packet.set_protocol_type(Protocol::Ipv4); in test_construct()
|
D | udp.rs | 237 (&IpAddress::Ipv4(_), &IpAddress::Ipv4(_)) if packet.checksum() == 0 => (), in parse()
|
D | ipv4.rs | 109 super::IpAddress::Ipv4(self) in into_address()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | ipv4.rs | 30 let key = FragKey::Ipv4(ipv4_packet.get_key()); in process_ipv4() 68 let ip_repr = IpRepr::Ipv4(ipv4_repr); in process_ipv4() 114 .lookup(&IpAddress::Ipv4(ipv4_repr.dst_addr), self.now) in process_ipv4() 200 if !self.in_same_network(&IpAddress::Ipv4(source_protocol_addr)) { in process_arp() 272 IpRepr::Ipv4(ipv4_repr) => self.icmpv4_reply(ipv4_repr, icmp_reply_repr), in process_icmpv4() 361 IpVersion::Ipv4 => frame.set_ethertype(EthernetProtocol::Ipv4), in dispatch_ipv4_frag() 370 emit_ethernet(&IpRepr::Ipv4(frag.ipv4.repr), tx_buffer); in dispatch_ipv4_frag()
|
D | tests.rs | 154 let repr = IpRepr::Ipv4(Ipv4Repr { in test_no_icmp_no_unicast_ipv4() 213 let repr = IpRepr::Ipv4(Ipv4Repr { in test_icmp_error_no_payload() 267 *addr = IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address([192, 168, 1, 23]), 24)); in test_local_subnet_broadcasts() 280 *addr = IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address([192, 168, 23, 24]), 16)); in test_local_subnet_broadcasts() 298 *addr = IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address([192, 168, 23, 24]), 8)); in test_local_subnet_broadcasts() 333 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_icmp_error_port_unreachable() 386 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_icmp_error_port_unreachable() 398 &IpAddress::Ipv4(Ipv4Address::BROADCAST), in test_icmp_error_port_unreachable() 458 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in test_handle_udp_broadcast() 742 &IpAddress::Ipv4(local_ip_addr), in test_handle_valid_arp_request() [all …]
|
D | mod.rs | 51 Ipv4(Ipv4FragKey), enumerator 341 IpPacket::Icmpv4((ipv4_repr, _)) => IpRepr::Ipv4(*ipv4_repr), in ip_repr() 343 IpPacket::Igmp((ipv4_repr, _)) => IpRepr::Ipv4(*ipv4_repr), in ip_repr() 353 IpPacket::Dhcpv4((ipv4_repr, _, _)) => IpRepr::Ipv4(*ipv4_repr), in ip_repr() 935 (IpRepr::Ipv4(ipv4_repr), IcmpRepr::Ipv4(icmpv4_repr)) => { in socket_egress() 1090 if let IpCidr::Ipv4(cidr) = cidr { in get_source_address_ipv4() 1142 IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address::new(192, 168, 1, 1), 24)), in mock() 1262 IpCidr::Ipv4(cidr) => Some(cidr.address()), in ipv4_addr() 1292 Ok(IpVersion::Ipv4) => { in process_ip() 1336 IpCidr::Ipv4(own_ip) => Some(own_ip.broadcast()?), in is_subnet_broadcast() [all …]
|
D | igmp.rs | 37 IpAddress::Ipv4(addr) => { in join_multicast_group() 85 IpAddress::Ipv4(addr) => { in leave_multicast_group() 198 IpAddress::Ipv4(key) => { in has_multicast_group()
|
D | ethernet.rs | 34 EthernetProtocol::Ipv4 => { in process_ethernet()
|
/smoltcp-0.9.1/src/socket/ |
D | icmp.rs | 381 &IcmpRepr::Ipv4( in accepts() 422 &IcmpRepr::Ipv4(Icmpv4Repr::EchoRequest { ident, .. }), in accepts() 426 &IcmpRepr::Ipv4(Icmpv4Repr::EchoReply { ident, .. }), in accepts() 444 IcmpRepr::Ipv4(icmp_repr) => { in process() 496 IpAddress::Ipv4(dst_addr) => { in dispatch() 518 let ip_repr = IpRepr::Ipv4(Ipv4Repr { in dispatch() 525 emit(cx, (ip_repr, IcmpRepr::Ipv4(repr))) in dispatch() 621 addr: IpAddress::Ipv4(LOCAL_IPV4), 631 static LOCAL_IPV4_REPR: IpRepr = IpRepr::Ipv4(Ipv4Repr { 639 static REMOTE_IPV4_REPR: IpRepr = IpRepr::Ipv4(Ipv4Repr { [all …]
|
D | raw.rs | 330 Ok(IpVersion::Ipv4) => { in dispatch() 359 emit(cx, (IpRepr::Ipv4(ipv4_repr), packet.payload())) in dispatch() 434 IpVersion::Ipv4, in socket() 442 pub const HEADER_REPR: IpRepr = IpRepr::Ipv4(Ipv4Repr { 770 IpVersion::Ipv4, in test_doesnt_accept_wrong_proto()
|
D | dns.rs | 28 const MDNS_IPV4_ADDR: IpAddress = IpAddress::Ipv4(crate::wire::Ipv4Address([224, 0, 0, 251]));
|
D | udp.rs | 510 use IpRepr::Ipv4 as IpReprIpvX;
|
D | dhcpv4.rs | 424 let prefix_len = match IpAddress::Ipv4(subnet_mask).prefix_len() { in parse_ack()
|
D | tcp.rs | 1872 IpAddress::Ipv4(_) => crate::wire::IPV4_HEADER_LEN, in seq_to_transmit() 2329 use IpRepr::Ipv4 as IpReprIpvX;
|
/smoltcp-0.9.1/benches/ |
D | bench.rs | 25 const SRC_ADDR: IpAddress = IpAddress::Ipv4(Ipv4Address([192, 168, 1, 1])); 27 const DST_ADDR: IpAddress = IpAddress::Ipv4(Ipv4Address([192, 168, 1, 2]));
|
/smoltcp-0.9.1/src/ |
D | parsers.rs | 304 Some(ipv4) => return Ok(IpAddress::Ipv4(ipv4)), in accept_ip() 330 addr: IpAddress::Ipv4(ip), in accept_ipv4_endpoint() 454 Ok(cidr) => return Ok(IpCidr::Ipv4(cidr)), in from_str() 633 Ok(IpAddress::Ipv4(Ipv4Address([1, 2, 3, 4]))) in test_ip_ipv4() 680 check_cidr_test_array!(tests, Ipv4Cidr::from_str, IpCidr::Ipv4); in test_cidr_ipv4()
|
/smoltcp-0.9.1/examples/ |
D | ping.rs | 164 IpAddress::Ipv4(_) => { in main() 204 IpAddress::Ipv4(_) => { in main()
|
D | dhcp_client.rs | 89 *dest = IpCidr::Ipv4(cidr); in set_ipv4_addr()
|
D | multicast.rs | 66 IpVersion::Ipv4, in main()
|
/smoltcp-0.9.1/src/phy/ |
D | tracer.rs | 160 Ok(crate::wire::IpVersion::Ipv4) => { in fmt()
|
/smoltcp-0.9.1/fuzz/fuzz_targets/ |
D | tcp_headers.rs | 71 EthernetProtocol::Ipv4 => { in fuzz_packet()
|
/smoltcp-0.9.1/src/iface/ |
D | route.rs | 28 const IPV4_DEFAULT: IpCidr = IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address::new(0, 0, 0, 0), 0));
|