|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | removeNetmaskSpec ($ip) |
| static | Uncompress ($ip) |
| static | SplitV64 ($ip) |
| static | checkIPv6 ($ip) |
Definition at line 11856 of file simplepie.class.php.
| static checkIPv6 | ( | $ | ip | ) | [static] |
Checks an IPv6 address
Checks if the given IP is IPv6-compatible
public
| string | $ip | a valid IPv6-address |
Definition at line 12007 of file simplepie.class.php.

| static removeNetmaskSpec | ( | $ | ip | ) | [static] |
Removes a possible existing netmask specification of an IP address.
| string | $ip | the (compressed) IP as Hex representation |
Definition at line 11867 of file simplepie.class.php.

| static SplitV64 | ( | $ | ip | ) | [static] |
Splits an IPv6 address into the IPv6 and a possible IPv4 part
RFC 2373 allows you to note the last two parts of an IPv6 address as an IPv4 compatible address
Example: 0:0:0:0:0:0:13.1.68.3 0:0:0:0:0:FFFF:129.144.52.38
public
| string | $ip | a valid IPv6-address (hex format) |
Definition at line 11981 of file simplepie.class.php.


| static Uncompress | ( | $ | ip | ) | [static] |
Uncompresses an IPv6 address
RFC 2373 allows you to compress zeros in an address to '::'. This function expects an valid IPv6 address and expands the '::' to the required zeros.
Example: FF01::101 -> FF01:0:0:0:0:0:0:101 ::1 -> 0:0:0:0:0:0:0:1
public
| string | $ip | a valid IPv6-address (hex format) |
Definition at line 11895 of file simplepie.class.php.

