# dbms-network-acl-utility Specification ## Purpose Defines Oracle-compatible behavior of the RuDB DBMS_NETWORK_ACL_UTILITY package for network host and domain matching. This capability specifies domain-level calculation, host equivalence, validation of network identifiers, and expected handling of IPv4, wildcard, CIDR, and IPv4-mapped IPv6 representations. It supports predictable migration of applications using Oracle network access-control utilities. ## Requirements ### Requirement: RuDB SHALL reject invalid IPv4 CIDR input in DOMAIN_LEVEL RuDB SHALL implement the tested Oracle 23ai behavior of `DBMS_NETWORK_ACL_UTILITY.DOMAIN_LEVEL` without changing its public catalog signature. #### Scenario: IPv4 CIDR is not a domain-level input - **WHEN** `DBMS_NETWORK_ACL_UTILITY.DOMAIN_LEVEL` receives `192.168.0.1/24` - **THEN** it raises `ORA-24244` rather than returning a domain depth #### Scenario: Established valid inputs remain compatible - **WHEN** the 19 other reference scenarios are executed - **THEN** all results match the recorded Oracle 23ai reference (including expected invalid-input errors) ### Requirement: RuDB SHALL recognize equivalent subnet representations in EQUALS_HOST RuDB SHALL implement the tested Oracle 23ai behavior of `DBMS_NETWORK_ACL_UTILITY.EQUALS_HOST` without changing its public catalog signature. #### Scenario: Wildcard and IPv4 CIDR equivalence - **WHEN** `EQUALS_HOST` compares `192.0.2.*` and `192.0.2.0/24` in either order - **THEN** it returns `1` #### Scenario: IPv4-mapped IPv6 equivalence - **WHEN** `EQUALS_HOST` compares `192.0.2.0/24` and `::ffff:192.0.2.0/120` in either order - **THEN** it returns `1` #### Scenario: Preserve non-equivalent and NULL behavior - **WHEN** all 20 Oracle reference scenarios are executed - **THEN** results including `0`, `1`, and `NULL` match the Oracle 23ai reference