add the issubnet and isconflicting code checks for ipv6
[PHPIPManager.git] / unittest / iptogmp.php
diff --git a/unittest/iptogmp.php b/unittest/iptogmp.php
new file mode 100644 (file)
index 0000000..adf7a9f
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+require_once("../lib/lib.php");
+
+$ipa = "2003:3:2:2:3:3::1";
+$ipasn = "96";
+
+ip6ToGmp($ipa, $ipasn);
+
+$ipa = "2003:3:2:2:3::1";
+$ipasn = "64";
+
+ip6ToGmp($ipa, $ipasn);
+
+//$ipa = "2003:";
+//$ipasn = "16";
+
+//ip6ToGmp($ipa, $ipasn);
+
+
+?>
\ No newline at end of file