oracle PL/SQL how to calculate range ip for IPv6 cidr

Once I wrote a general PL/SQL Package where you can do such conversions. It works for both, IPv4 and IPv6. CREATE OR REPLACE PACKAGE IP_Util AS /** * Convert an IP-Address into decimal value. * @param IP The IP-Address, e.g. ‘10.151.20.224’ or ‘1080::8:800:200C:417A’. * Supports also mixed notation like ‘0:0:0:0:0:FFFF:129.144.52.38’. CIDR value (e.g. ‘1080::8:800:200C:417A/80’) is … Read more