mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-01-02 23:33:38 -08:00
If you have a VM host like parallels, sometimes you get these link-local default routes: ``` netstat -nrfinet | grep "default\|\/1" 0/1 10.2.0.12 UGScg feth4823 default 192.168.82.1 UGScg en1 0/1 192.168.82.1 UGScIg en1 default link#22 UCSIg bridge101 ! 128.0/1 10.2.0.12 UGSc feth4823 128.0/1 192.168.82.1 UGScI en1 ``` (the link#22 one) The _getRTEs function inclused these routes in the list it makes as like: device: bridge101, target: 0.0.0.0/0 If it happens to be first in the list, bridge101 gets selected as the default route. Then Full Tunnel Mode doesn't work. The other routes in the list are like: device: en1 target: 192.168.1.0/24 via: metric: 0 ifscope: 0 device: en1 target: 192.168.1.1/32 via: metric: 0 ifscope: 0 We only need the device name from this, so either one will work. |
||
|---|---|---|
| .. | ||
| Arp.cpp | ||
| Arp.hpp | ||
| Binder.hpp | ||
| BlockingQueue.hpp | ||
| BSDEthernetTap.cpp | ||
| BSDEthernetTap.hpp | ||
| EthernetTap.cpp | ||
| EthernetTap.hpp | ||
| freebsd_getifmaddrs.c | ||
| freebsd_getifmaddrs.h | ||
| Http.cpp | ||
| Http.hpp | ||
| LinuxEthernetTap.cpp | ||
| LinuxEthernetTap.hpp | ||
| LinuxNetLink.cpp | ||
| LinuxNetLink.hpp | ||
| MacDNSHelper.hpp | ||
| MacDNSHelper.mm | ||
| MacEthernetTap.cpp | ||
| MacEthernetTap.hpp | ||
| MacEthernetTapAgent.c | ||
| MacEthernetTapAgent.h | ||
| MacKextEthernetTap.cpp | ||
| MacKextEthernetTap.hpp | ||
| ManagedRoute.cpp | ||
| ManagedRoute.hpp | ||
| NeighborDiscovery.cpp | ||
| NeighborDiscovery.hpp | ||
| NetBSDEthernetTap.cpp | ||
| NetBSDEthernetTap.hpp | ||
| OSUtils.cpp | ||
| OSUtils.hpp | ||
| Phy.hpp | ||
| PortMapper.cpp | ||
| PortMapper.hpp | ||
| README.md | ||
| Thread.hpp | ||
| WinDNSHelper.cpp | ||
| WinDNSHelper.hpp | ||
| WindowsEthernetTap.cpp | ||
| WindowsEthernetTap.hpp | ||
OS-Dependent and OS-Interface Things
This folder contains stuff that interfaces with the base operating system like Phy for network access and the various OS-specific Ethernet tap drivers.