parent
f6acec53c0
commit
ba4237f1dd
64 changed files with 1933 additions and 336 deletions
|
|
@ -8,6 +8,8 @@
|
|||
#include <QDebug>
|
||||
#include <QObject>
|
||||
|
||||
#include "../client/platforms/linux/daemon/dnsutilslinux.h"
|
||||
|
||||
/**
|
||||
* @brief The Router class - General class for handling ip routing
|
||||
*/
|
||||
|
|
@ -29,15 +31,20 @@ public:
|
|||
bool routeDeleteList(const QString &gw, const QStringList &ips);
|
||||
QString getgatewayandiface();
|
||||
void flushDns();
|
||||
|
||||
bool createTun(const QString &dev, const QString &subnet);
|
||||
bool deleteTun(const QString &dev);
|
||||
void StartRoutingIpv6();
|
||||
void StopRoutingIpv6();
|
||||
bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers);
|
||||
public slots:
|
||||
|
||||
private:
|
||||
RouterLinux() {}
|
||||
RouterLinux() {m_dnsUtil = new DnsUtilsLinux(this);}
|
||||
RouterLinux(RouterLinux const &) = delete;
|
||||
RouterLinux& operator= (RouterLinux const&) = delete;
|
||||
|
||||
QList<Route> m_addedRoutes;
|
||||
DnsUtilsLinux *m_dnsUtil;
|
||||
};
|
||||
|
||||
#endif // ROUTERLINUX_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue