iprfc/rfc7335.rs
1use core::net::Ipv4Addr;
2
3use ipnet::{IpNet, Ipv4Net};
4
5use super::RFC;
6
7const IPV4_1: Ipv4Net = Ipv4Net::new_assert(Ipv4Addr::new(192, 0, 0, 0), 29);
8
9/// [RFC 7335] IPv4 Service Continuity Prefix
10///
11/// **Addresses:**
12/// - **IPv4:**
13/// 1. `192.0.0.0/29`: ยง6 IANA Considerations
14///
15/// [RFC 7335]: https://datatracker.ietf.org/doc/rfc7335/
16pub const RFC7335: RFC = RFC {
17 id: 7335,
18 ip_nets: &[IpNet::V4(IPV4_1)],
19 ipv4_nets: &[IPV4_1],
20 ipv6_nets: &[],
21};
22
23#[test]
24fn t() {
25 let addr: Ipv4Net = "192.0.0.0/29".parse().unwrap();
26 assert_eq!(IPV4_1, addr);
27}