Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 344 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 344 Bytes

ipv6-subnet-calculator

Quick demo:

include 'calculator_tools.php';
include 'Network.php';

$human_ip = '2001:9fe:a:80::';
$prefix = 60;
$levels = array(3, 4);

$ip = human_to_hex( $human_ip );
$top_level = new Network($ip, $prefix, $levels);

header('Content-Type: text/plain');
print_network($top_level);