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:
Grant Limberg
2018-05-24 15:22:11 -07:00
parent c0efba79c7
commit c24d16e62e
6 changed files with 783 additions and 19 deletions

13
nltest.cpp Normal file
View 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);
}
}