source: node_modules/ip-address/dist/v6/constants.js@ 81bc7da

finki-main main
Last change on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 2.5 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.RE_URL_WITH_PORT = exports.RE_URL = exports.RE_ZONE_STRING = exports.RE_SUBNET_STRING = exports.RE_BAD_ADDRESS = exports.RE_BAD_CHARACTERS = exports.TYPES = exports.SCOPES = exports.GROUPS = exports.BITS = void 0;
4exports.BITS = 128;
5exports.GROUPS = 8;
6/**
7 * Represents IPv6 address scopes
8 * @memberof Address6
9 * @static
10 */
11exports.SCOPES = {
12 0: 'Reserved',
13 1: 'Interface local',
14 2: 'Link local',
15 4: 'Admin local',
16 5: 'Site local',
17 8: 'Organization local',
18 14: 'Global',
19 15: 'Reserved',
20};
21/**
22 * Represents IPv6 address types
23 * @memberof Address6
24 * @static
25 */
26exports.TYPES = {
27 'ff01::1/128': 'Multicast (All nodes on this interface)',
28 'ff01::2/128': 'Multicast (All routers on this interface)',
29 'ff02::1/128': 'Multicast (All nodes on this link)',
30 'ff02::2/128': 'Multicast (All routers on this link)',
31 'ff05::2/128': 'Multicast (All routers in this site)',
32 'ff02::5/128': 'Multicast (OSPFv3 AllSPF routers)',
33 'ff02::6/128': 'Multicast (OSPFv3 AllDR routers)',
34 'ff02::9/128': 'Multicast (RIP routers)',
35 'ff02::a/128': 'Multicast (EIGRP routers)',
36 'ff02::d/128': 'Multicast (PIM routers)',
37 'ff02::16/128': 'Multicast (MLDv2 reports)',
38 'ff01::fb/128': 'Multicast (mDNSv6)',
39 'ff02::fb/128': 'Multicast (mDNSv6)',
40 'ff05::fb/128': 'Multicast (mDNSv6)',
41 'ff02::1:2/128': 'Multicast (All DHCP servers and relay agents on this link)',
42 'ff05::1:2/128': 'Multicast (All DHCP servers and relay agents in this site)',
43 'ff02::1:3/128': 'Multicast (All DHCP servers on this link)',
44 'ff05::1:3/128': 'Multicast (All DHCP servers in this site)',
45 '::/128': 'Unspecified',
46 '::1/128': 'Loopback',
47 'ff00::/8': 'Multicast',
48 'fe80::/10': 'Link-local unicast',
49};
50/**
51 * A regular expression that matches bad characters in an IPv6 address
52 * @memberof Address6
53 * @static
54 */
55exports.RE_BAD_CHARACTERS = /([^0-9a-f:/%])/gi;
56/**
57 * A regular expression that matches an incorrect IPv6 address
58 * @memberof Address6
59 * @static
60 */
61exports.RE_BAD_ADDRESS = /([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;
62/**
63 * A regular expression that matches an IPv6 subnet
64 * @memberof Address6
65 * @static
66 */
67exports.RE_SUBNET_STRING = /\/\d{1,3}(?=%|$)/;
68/**
69 * A regular expression that matches an IPv6 zone
70 * @memberof Address6
71 * @static
72 */
73exports.RE_ZONE_STRING = /%.*$/;
74exports.RE_URL = /^\[{0,1}([0-9a-f:]+)\]{0,1}/;
75exports.RE_URL_WITH_PORT = /\[([0-9a-f:]+)\]:([0-9]{1,5})/;
76//# sourceMappingURL=constants.js.map
Note: See TracBrowser for help on using the repository browser.