MediaWiki REL1_35
IP.php File Reference

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. More...

Go to the source code of this file.

Classes

class  IP
 Pre-librarized class name for IPUtils. More...
 

Variables

const IP_ADDRESS_STRING IPUtils::RE_IP_ADDRESS_STRING
 This might be useful for regexps used elsewhere, matches any IPv4 or IPv6 address or network.
 
const RE_IP_ADD IPUtils::RE_IP_ADD
 
const RE_IP_BYTE IPUtils::RE_IP_BYTE
 An IPv4 address is made of 4 bytes from x00 to xFF which is d0 to d255.
 
const RE_IP_PREFIX IPUtils::RE_IP_PREFIX
 An IPv4 range is an IP address and a prefix (d1 to d32)
 
const RE_IP_RANGE IPUtils::RE_IP_RANGE
 
const RE_IPV6_ADD IPUtils::RE_IPV6_ADD
 
const RE_IPV6_GAP IPUtils::RE_IPV6_GAP
 For IPv6 canonicalization (NOT for strict validation; these are quite lax!)
 
const RE_IPV6_PREFIX IPUtils::RE_IPV6_PREFIX
 
const RE_IPV6_RANGE IPUtils::RE_IPV6_RANGE
 An IPv6 range is an IP address and a prefix (d1 to d128)
 
const RE_IPV6_V4_PREFIX IPUtils::RE_IPV6_V4_PREFIX
 
const RE_IPV6_WORD IPUtils::RE_IPV6_WORD
 An IPv6 address is made up of 8 words (each x0000 to xFFFF).
 

Detailed Description

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file IP.php.

Variable Documentation

◆ IP_ADDRESS_STRING

const IP_ADDRESS_STRING IPUtils::RE_IP_ADDRESS_STRING

This might be useful for regexps used elsewhere, matches any IPv4 or IPv6 address or network.

Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IP_ADDRESS_STRING instead

Definition at line 73 of file IP.php.

◆ RE_IP_ADD

const RE_IP_ADD IPUtils::RE_IP_ADD
Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IP_ADD instead

Definition at line 31 of file IP.php.

◆ RE_IP_BYTE

const RE_IP_BYTE IPUtils::RE_IP_BYTE

An IPv4 address is made of 4 bytes from x00 to xFF which is d0 to d255.

Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IP_BYTE instead

Definition at line 27 of file IP.php.

◆ RE_IP_PREFIX

const RE_IP_PREFIX IPUtils::RE_IP_PREFIX

An IPv4 range is an IP address and a prefix (d1 to d32)

Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IP_PREFIX instead

Definition at line 36 of file IP.php.

◆ RE_IP_RANGE

const RE_IP_RANGE IPUtils::RE_IP_RANGE
Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IP_RANGE instead

Definition at line 40 of file IP.php.

◆ RE_IPV6_ADD

const RE_IPV6_ADD IPUtils::RE_IPV6_ADD
Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IPV6_ADD instead

Definition at line 54 of file IP.php.

◆ RE_IPV6_GAP

const RE_IPV6_GAP IPUtils::RE_IPV6_GAP

For IPv6 canonicalization (NOT for strict validation; these are quite lax!)

Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IPV6_GAP instead

Definition at line 64 of file IP.php.

◆ RE_IPV6_PREFIX

const RE_IPV6_PREFIX IPUtils::RE_IPV6_PREFIX
Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IPV6_PREFIX instead

Definition at line 50 of file IP.php.

◆ RE_IPV6_RANGE

const RE_IPV6_RANGE IPUtils::RE_IPV6_RANGE

An IPv6 range is an IP address and a prefix (d1 to d128)

Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IPV6_RANGE instead

Definition at line 59 of file IP.php.

◆ RE_IPV6_V4_PREFIX

const RE_IPV6_V4_PREFIX IPUtils::RE_IPV6_V4_PREFIX
Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IPV6_V4_PREFIX instead

Definition at line 68 of file IP.php.

◆ RE_IPV6_WORD

const RE_IPV6_WORD IPUtils::RE_IPV6_WORD

An IPv6 address is made up of 8 words (each x0000 to xFFFF).

However, the "::" abbreviation can be used on consecutive x0000 words.

Deprecated:
since 1.35 use Wikimedia\IPUtils::RE_IPV6_WORD instead

Definition at line 46 of file IP.php.