1<?php
2/**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
17 *
18 * @file
19 */
20
21use Wikimedia\IPUtils;
22
23/**
24 * An IPv4 address is made of 4 bytes from x00 to xFF which is d0 to d255
25 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IP_BYTE instead
26 */
27define( 'RE_IP_BYTE', IPUtils::RE_IP_BYTE );
28/**
29 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IP_ADD instead
30 */
31define( 'RE_IP_ADD', IPUtils::RE_IP_ADD );
32/**
33 * An IPv4 range is an IP address and a prefix (d1 to d32)
34 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IP_PREFIX instead
35 */
36define( 'RE_IP_PREFIX', IPUtils::RE_IP_PREFIX );
37/**
38 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IP_RANGE instead
39 */
40define( 'RE_IP_RANGE', IPUtils::RE_IP_RANGE );
41/**
42 * An IPv6 address is made up of 8 words (each x0000 to xFFFF).
43 * However, the "::" abbreviation can be used on consecutive x0000 words.
44 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IPV6_WORD instead
45 */
46define( 'RE_IPV6_WORD', IPUtils::RE_IPV6_WORD );
47/**
48 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IPV6_PREFIX instead
49 */
50define( 'RE_IPV6_PREFIX', IPUtils::RE_IPV6_PREFIX );
51/**
52 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IPV6_ADD instead
53 */
54define( 'RE_IPV6_ADD', IPUtils::RE_IPV6_ADD );
55/**
56 * An IPv6 range is an IP address and a prefix (d1 to d128)
57 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IPV6_RANGE instead
58 */
59define( 'RE_IPV6_RANGE', IPUtils::RE_IPV6_RANGE );
60/**
61 * For IPv6 canonicalization (NOT for strict validation; these are quite lax!)
62 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IPV6_GAP instead
63 */
64define( 'RE_IPV6_GAP', IPUtils::RE_IPV6_GAP );
65/**
66 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IPV6_V4_PREFIX instead
67 */
68define( 'RE_IPV6_V4_PREFIX', IPUtils::RE_IPV6_V4_PREFIX );
69/**
70 * This might be useful for regexps used elsewhere, matches any IPv4 or IPv6 address or network
71 * @deprecated since 1.35 use Wikimedia\IPUtils::RE_IP_ADDRESS_STRING instead
72 */
73define( 'IP_ADDRESS_STRING', IPUtils::RE_IP_ADDRESS_STRING );
74
75/**
76 * Pre-librarized class name for IPUtils
77 *
78 * @deprecated since 1.35
79 */
80class IP extends IPUtils {
81	// Direct wrapper.
82}
83