Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions registries/_format/ipv4-cidr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
owner: ChihweiLHBird
issue:
description: An IPv4 address in CIDR notation
base_type: string
layout: default
source_label: RFC 4632
source: https://www.rfc-editor.org/rfc/rfc4632#section-3.1
---

{% capture summary %}
The `{{page.slug}}` format represents an IPv4 address in CIDR notation, with the address and prefix-length syntax described in [RFC4632](https://www.rfc-editor.org/rfc/rfc4632#section-3.1).

The address MUST be a valid `ipv4` address, and the prefix length MUST be a decimal integer from `0` to `32`, inclusive. A plain IPv4 address without a prefix length is not accepted.

Examples of valid values include `10.0.0.0/8` and `192.168.1.0/24`.
{% endcapture %}

{% include format-entry.md summary=summary %}
19 changes: 19 additions & 0 deletions registries/_format/ipv6-cidr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
owner: ChihweiLHBird
issue:
description: An IPv6 address in CIDR-style notation
base_type: string
layout: default
source_label: RFC 4291
source: https://www.rfc-editor.org/rfc/rfc4291#section-2.3
---

{% capture summary %}
The `{{page.slug}}` format represents an IPv6 address in CIDR notation, with the syntax described in [RFC4291](https://www.rfc-editor.org/rfc/rfc4291#section-2.3).

The address MUST be a valid `ipv6` address, and the prefix length MUST be a decimal integer from `0` to `128`, inclusive. A plain IPv6 address without a prefix length is not accepted.

Examples of valid values include `2001:db8::/32` and `::1/128`.
{% endcapture %}

{% include format-entry.md summary=summary %}