ip_cidr
IPv4/IPv6 CIDR math. Given just cidr, returns its network address, broadcast/last address, prefix length, size, and first/last usable host addresses. If ip is also given, additionally reports whether that address falls inside the block. Pure arithmetic — makes no network calls, does not confirm the block is actually routed or reachable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Optional IP address to test for membership in `cidr`. | |
| cidr | Yes | A CIDR block, e.g. "10.0.0.0/24" or "2001:db8::/32". |