mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-12 16:13:25 -07: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:
parent
c0efba79c7
commit
c24d16e62e
6 changed files with 783 additions and 19 deletions
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue