64 static const std::vector<std::pair<QHostAddress, int>> ipv4Private(
83 static const std::vector<std::pair<QHostAddress, int>> ipv4Reserved(
126 {
QHostAddress(QStringLiteral(
"255.255.255.255")), 32}});
129 static const std::vector<std::pair<QHostAddress, int>> ipv6Private(
137 static const std::vector<std::pair<QHostAddress, int>> ipv6Reserved(
172 if (a.setAddress(
value)) {
178 if (constraints.testFlag(
IPv6Only)) {
185 for (
const std::pair<QHostAddress, int> &subnet : ipv4Private) {
186 if (a.isInSubnet(subnet.first, subnet.second)) {
196 for (
const std::pair<QHostAddress, int> &subnet : ipv4Reserved) {
197 if (a.isInSubnet(subnet.first, subnet.second)) {
206 if (a.isInSubnet(
QHostAddress(QStringLiteral(
"224.0.0.0")), 4)) {
213 if (constraints.testFlag(
IPv4Only)) {
220 for (
const std::pair<QHostAddress, int> &subnet : ipv6Private) {
221 if (a.isInSubnet(subnet.first, subnet.second)) {
231 for (
const std::pair<QHostAddress, int> &subnet : ipv6Reserved) {
232 if (a.isInSubnet(subnet.first, subnet.second)) {
241 if (a.isInSubnet(
QHostAddress(QStringLiteral(
"ff00::")), 8)) {
QString qtTrId(const char *id, int n=-1) const