Lines Matching refs:Ipv4

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()
161 Address::Ipv4(addr) => addr.is_unspecified(), in is_unspecified()
198 ::std::net::IpAddr::V4(ipv4) => Address::Ipv4(ipv4.into()), in from()
209 Address::Ipv4(ipv4) => ::std::net::IpAddr::V4(ipv4.into()), in from()
219 Address::Ipv4(ipv4.into()) in from()
233 Address::Ipv4(addr) in from()
248 Address::Ipv4(addr) => write!(f, "{addr}"), in fmt()
260 &Address::Ipv4(addr) => defmt::write!(f, "{:?}", addr), in format()
272 Ipv4(Ipv4Cidr), enumerator
285 Address::Ipv4(addr) => Cidr::Ipv4(Ipv4Cidr::new(addr, prefix_len)), in new()
295 Cidr::Ipv4(cidr) => Address::Ipv4(cidr.address()), in address()
305 Cidr::Ipv4(cidr) => cidr.prefix_len(), in prefix_len()
316 (Cidr::Ipv4(cidr), Address::Ipv4(addr)) => cidr.contains_addr(addr), in contains_addr()
329 (Cidr::Ipv4(cidr), Cidr::Ipv4(other)) => cidr.contains_subnet(other), in contains_subnet()
341 Cidr::Ipv4(addr) in from()
356 Cidr::Ipv4(cidr) => write!(f, "{cidr}"), in fmt()
368 &Cidr::Ipv4(cidr) => defmt::write!(f, "{:?}", cidr), in format()
544 Ipv4(Ipv4Repr), enumerator
552 Repr::Ipv4(repr) in from()
578 (Address::Ipv4(src_addr), Address::Ipv4(dst_addr)) => Self::Ipv4(Ipv4Repr { in new()
602 Repr::Ipv4(_) => Version::Ipv4, in version()
612 Repr::Ipv4(repr) => Address::Ipv4(repr.src_addr), in src_addr()
622 Repr::Ipv4(repr) => Address::Ipv4(repr.dst_addr), in dst_addr()
632 Repr::Ipv4(repr) => repr.next_header, in next_header()
642 Repr::Ipv4(repr) => repr.payload_len, in payload_len()
652 Repr::Ipv4(Ipv4Repr { payload_len, .. }) => *payload_len = length, in set_payload_len()
662 Repr::Ipv4(Ipv4Repr { hop_limit, .. }) => hop_limit, in hop_limit()
672 Repr::Ipv4(repr) => repr.buffer_len(), in header_len()
686 Repr::Ipv4(repr) => repr.emit(&mut Ipv4Packet::new_unchecked(buffer), _checksum_caps), in emit()
761 (&Address::Ipv4(src_addr), &Address::Ipv4(dst_addr)) => { in pseudo_header()
901 pub(crate) const MOCK_IP_ADDR_1: IpAddress = IpAddress::Ipv4(Ipv4Address([192, 168, 1, 1]));
903 pub(crate) const MOCK_IP_ADDR_2: IpAddress = IpAddress::Ipv4(Ipv4Address([192, 168, 1, 2]));
905 pub(crate) const MOCK_IP_ADDR_3: IpAddress = IpAddress::Ipv4(Ipv4Address([192, 168, 1, 3]));
907 pub(crate) const MOCK_IP_ADDR_4: IpAddress = IpAddress::Ipv4(Ipv4Address([192, 168, 1, 4]));
909 pub(crate) const MOCK_UNSPECIFIED: IpAddress = IpAddress::Ipv4(Ipv4Address::UNSPECIFIED);