{"id":"ipv4-in-cidr","version":"1.0.0","description":"Test whether a canonical IPv4 address lies in a CIDR prefix whose host bits are zero.","supported_operations":["ipv4 in cidr","check ipv4 cidr membership","ipv4 address in network prefix"],"unsupported_operations":["IPv6","IPv4-mapped IPv6","ranges with hyphens","dotted netmasks","host bits ignored"],"semantics":["address is a canonical dotted-decimal IPv4 address (four octets 0-255, no leading zeros, no spaces, no hex).","cidr is dotted-decimal/prefix with prefix a JSON-decimal integer 0-32 and no leading zeros except 0.","The CIDR network address must have host bits zero; otherwise the tool throws CIDR host bits must be zero.","inside is true iff the address uint32 is in [network, network + 2^(32-prefix) - 1].","Prefix 32 matches only the address itself. Prefix 0 is valid only as 0.0.0.0/0 and matches every IPv4 address.","network is the canonical dotted network address; prefix is a JSON integer."],"limits":{"max_address_length":15,"max_cidr_length":18,"prefix_min":0,"prefix_max":32},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["address","cidr"],"properties":{"address":{"type":"string","maxLength":15,"pattern":"^(?:0|[1-9][0-9]{0,2})(?:\\.(?:0|[1-9][0-9]{0,2})){3}$"},"cidr":{"type":"string","maxLength":18}}},"output_schema":{"type":"object","additionalProperties":false,"required":["inside","network","prefix"],"properties":{"inside":{"type":"boolean"},"network":{"type":"string","maxLength":15},"prefix":{"type":"integer","minimum":0,"maximum":32}}},"examples":[{"input":{"address":"192.168.1.10","cidr":"192.168.1.0/24"},"output":{"inside":true,"network":"192.168.1.0","prefix":24}}],"execute_url":"/v1/tools/ipv4-in-cidr/versions/1.0.0/execute"}