Killswitch and Splittunnel for MacOS IPSec
This commit is contained in:
parent
f0e66e4ecf
commit
a144d495ee
4 changed files with 184 additions and 173 deletions
|
|
@ -18,19 +18,24 @@ public:
|
|||
static QString getGatewayAndIface();
|
||||
// Returns the Interface Index that could Route to dst
|
||||
static int AdapterIndexTo(const QHostAddress& dst);
|
||||
|
||||
|
||||
static QRegularExpression ipAddressRegExp();
|
||||
static QRegularExpression ipAddressPortRegExp();
|
||||
static QRegExp ipAddressWithSubnetRegExp();
|
||||
static QRegExp ipNetwork24RegExp();
|
||||
static QRegExp ipPortRegExp();
|
||||
static QRegExp domainRegExp();
|
||||
|
||||
|
||||
static QString netMaskFromIpWithSubnet(const QString ip);
|
||||
static QString ipAddressFromIpWithSubnet(const QString ip);
|
||||
|
||||
|
||||
static QStringList summarizeRoutes(const QStringList &ips, const QString cidr);
|
||||
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
static QString ipAddressByInterfaceName(const QString &interfaceName);
|
||||
static QString lastConnectedNetworkInterfaceName();
|
||||
static QStringList getListOfDnsNetworkServiceEntries();
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // NETWORKUTILITIES_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue