 |
OpenVPN 3 Core Library
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
15#ifndef OPENVPN_ADDR_REGEX_H
16#define OPENVPN_ADDR_REGEX_H
23 const std::string ipv4seg =
"(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])";
24 return "(?:" + ipv4seg +
"\\.){3,3}" + ipv4seg;
29 const std::string ipv6seg =
"[0-9a-fA-F]{1,4}";
32 "(?:" + ipv6seg +
":){7,7}" + ipv6seg +
"|"
33 "(?:" + ipv6seg +
":){1,7}:|"
34 "(?:" + ipv6seg +
":){1,6}:" + ipv6seg +
"|"
35 "(?:" + ipv6seg +
":){1,5}(?::" + ipv6seg +
"){1,2}|"
36 "(?:" + ipv6seg +
":){1,4}(?::" + ipv6seg +
"){1,3}|"
37 "(?:" + ipv6seg +
":){1,3}(?::" + ipv6seg +
"){1,4}|"
38 "(?:" + ipv6seg +
":){1,2}(?::" + ipv6seg +
"){1,5}|" +
39 ipv6seg +
":(?:(?::" + ipv6seg +
"){1,6})|"
40 ":(?:(?::" + ipv6seg +
"){1,7}|:)|"
41 "fe80:(?::" + ipv6seg +
"){0,4}%[0-9a-zA-Z]{1,}|"
42 "::(?:ffff(?::0{1,4}){0,1}:){0,1}" +
v4_regex() +
"|"
43 "(?:" + ipv6seg +
":){1,4}:" +
v4_regex() +