mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-21 00:23:05 +00:00
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.
This commit is contained in:
13
nltest.cpp
Normal file
13
nltest.cpp
Normal file
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user