summaryrefslogtreecommitdiff
path: root/nltest.cpp
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-05-24 15:22:11 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2018-05-24 15:22:11 -0700
commitc24d16e62eb6db70ff8aa8777156a938d1b7b2c0 (patch)
treeed1d3805867c4b1aba616a813c48e49687eaf595 /nltest.cpp
parentc0efba79c70ee537813efd333302dc588668cbce (diff)
downloadinfinitytier-c24d16e62eb6db70ff8aa8777156a938d1b7b2c0.tar.gz
infinitytier-c24d16e62eb6db70ff8aa8777156a938d1b7b2c0.zip
ManagedRoute uses ioctl to add/remove routes on Linux
Added LinuxNetLink to talk to the rtnetlink socket for adding interfaces, addresses routes. Not yet complete. Can currently monitor changes on the system.
Diffstat (limited to 'nltest.cpp')
-rw-r--r--nltest.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/nltest.cpp b/nltest.cpp
new file mode 100644
index 00000000..9659a794
--- /dev/null
+++ b/nltest.cpp
@@ -0,0 +1,13 @@
+#include "osdep/LinuxNetLink.hpp"
+
+using namespace ZeroTier;
+
+int main(int argc, char **argv)
+{
+ LinuxNetLink &nl = LinuxNetLink::getInstance();
+
+
+ while(true) {
+ Thread::sleep(1000);
+ }
+} \ No newline at end of file