some transfer fixes
authorpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 08:00:38 +0000 (10:00 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 08:00:38 +0000 (10:00 +0200)
Uplink/IPAddr.class.php

index 217fbe727dfbecb7951d51b86329694925b11801..fbc7c9839c3c7d3c833aa7dd0b0e4ba8fcb4a861 100644 (file)
@@ -49,7 +49,7 @@ class IPAddr {
        
        public function parseNumeric($numeric) {
                if(strlen($numeric) == 6) { //IPv4
-                       $value = self::numToInt($numeric);
+                       $value = Numerics::numToInt($numeric);
                        $this->ip6[6] = ($value & 0xffff0000) >> 16;
                        $this->ip6[7] = ($value & 0x0000ffff);
                        $this->addr_is_ipv6 = false;
@@ -61,7 +61,7 @@ class IPAddr {
                                        $skipBlocks = 8 - $j - $rightBlocks;
                                        $j += $skipBlocks;
                                } else {
-                                       $value = self::numToInt($numeric[$i].$numeric[$i+1].$numeric[$i+2]);
+                                       $value = Numerics::numToInt($numeric[$i].$numeric[$i+1].$numeric[$i+2]);
                                        $this->ip6[$j++] = dechex($value);
                                        $i += 3;
                                }