Home
last modified time | relevance | path

Searched refs:Ipv4 (Results 1 – 25 of 25) sorted by relevance

/smoltcp-0.9.1/src/wire/
Dip.rs16 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 …]
Dicmp.rs10 Ipv4(icmpv4::Repr<'a>), enumerator
17 Repr::Ipv4(s) in from()
Dethernet.rs9 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()
Darp.rs280 (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()
Dudp.rs237 (&IpAddress::Ipv4(_), &IpAddress::Ipv4(_)) if packet.checksum() == 0 => (), in parse()
Dipv4.rs109 super::IpAddress::Ipv4(self) in into_address()
/smoltcp-0.9.1/src/iface/interface/
Dipv4.rs30 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()
Dtests.rs154 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 …]
Dmod.rs51 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 …]
Digmp.rs37 IpAddress::Ipv4(addr) => { in join_multicast_group()
85 IpAddress::Ipv4(addr) => { in leave_multicast_group()
198 IpAddress::Ipv4(key) => { in has_multicast_group()
Dethernet.rs34 EthernetProtocol::Ipv4 => { in process_ethernet()
/smoltcp-0.9.1/src/socket/
Dicmp.rs381 &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 …]
Draw.rs330 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()
Ddns.rs28 const MDNS_IPV4_ADDR: IpAddress = IpAddress::Ipv4(crate::wire::Ipv4Address([224, 0, 0, 251]));
Dudp.rs510 use IpRepr::Ipv4 as IpReprIpvX;
Ddhcpv4.rs424 let prefix_len = match IpAddress::Ipv4(subnet_mask).prefix_len() { in parse_ack()
Dtcp.rs1872 IpAddress::Ipv4(_) => crate::wire::IPV4_HEADER_LEN, in seq_to_transmit()
2329 use IpRepr::Ipv4 as IpReprIpvX;
/smoltcp-0.9.1/benches/
Dbench.rs25 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/
Dparsers.rs304 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/
Dping.rs164 IpAddress::Ipv4(_) => { in main()
204 IpAddress::Ipv4(_) => { in main()
Ddhcp_client.rs89 *dest = IpCidr::Ipv4(cidr); in set_ipv4_addr()
Dmulticast.rs66 IpVersion::Ipv4, in main()
/smoltcp-0.9.1/src/phy/
Dtracer.rs160 Ok(crate::wire::IpVersion::Ipv4) => { in fmt()
/smoltcp-0.9.1/fuzz/fuzz_targets/
Dtcp_headers.rs71 EthernetProtocol::Ipv4 => { in fuzz_packet()
/smoltcp-0.9.1/src/iface/
Droute.rs28 const IPV4_DEFAULT: IpCidr = IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address::new(0, 0, 0, 0), 0));