ZeroTierOne/osdep
Travis LaDuke 692a0e7ac2 Set a high metric on linux routes that have a via.
See issue #750.

zerotier doesn't currently set a metric on routes. Linux
takes this to mean "0", the highest priority.

Every comment in the issue is about routing between zerotier
and lan and how they conflict.

This quick change could fix this problem for most people.

The subnet route for the zerotier network, the one with no
via, is still 0 in this patch. Just the "via" routes get
higher metrics.
If for some reason, you needed your via routes to have
higher priority, you could use a prefix work-around:

192.168.1.0/25 via 10.147.17.1
192.168.1.128/25 via 10.147.17.1
2022-01-07 13:10:36 -08:00
..
Arp.cpp BSL date bump 2020-08-20 12:51:39 -07:00
Arp.hpp BSL date bump 2020-08-20 12:51:39 -07:00
Binder.hpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
BlockingQueue.hpp Split Linux tap receive into two threads: one reader, one processor. 2020-11-16 21:40:25 -05:00
BSDEthernetTap.cpp BSD: add debug fprintfs for external commands 2021-04-15 06:37:01 +00:00
BSDEthernetTap.hpp BSL date bump 2020-08-20 12:51:39 -07:00
EthernetTap.cpp Automatically detect Ethernet tap friendly name in Windows shouldBind stuff. 2021-03-16 10:12:55 -04:00
EthernetTap.hpp Automatically detect Ethernet tap friendly name in Windows shouldBind stuff. 2021-03-16 10:12:55 -04:00
freebsd_getifmaddrs.c cleanup 2016-12-27 11:57:05 +01:00
freebsd_getifmaddrs.h Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Http.cpp BSL date bump 2020-08-20 12:51:39 -07:00
Http.hpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
LinuxEthernetTap.cpp Set MAC address twice, once before and once after bringing interface up, since different kernels behave differently (Linux). 2021-11-09 13:28:15 -05:00
LinuxEthernetTap.hpp Revert "Revert "Revert a change to LinuxEthernetTap threading to eliminate out of order packet issues on some systems."" 2021-06-28 19:29:53 -04:00
LinuxNetLink.cpp Set a high metric on linux routes that have a via. 2022-01-07 13:10:36 -08:00
LinuxNetLink.hpp Linux build fixes. 2020-11-16 11:11:52 -08:00
MacDNSHelper.hpp Convince macOS to do ipv6 dns lookups 2021-12-13 12:34:41 -08:00
MacDNSHelper.mm Convince macOS to do ipv6 dns lookups 2021-12-13 12:34:41 -08:00
MacEthernetTap.cpp Convince macOS to do ipv6 dns lookups 2021-12-13 12:34:41 -08:00
MacEthernetTap.hpp Some Mac feth tap changes to hopefully fix slow-leave problem. 2020-10-30 10:40:34 -04:00
MacEthernetTapAgent.c Remove deprecated vfork call on Mac, and make Mac route application more robust. 2021-10-26 22:15:06 -04:00
MacEthernetTapAgent.h BSL date bump 2020-08-20 12:51:39 -07:00
MacKextEthernetTap.cpp This code is obsolete but remove vfork anyway. 2021-11-15 14:09:52 -05:00
MacKextEthernetTap.hpp BSL date bump 2020-08-20 12:51:39 -07:00
ManagedRoute.cpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
ManagedRoute.hpp Simplify and fix managed route logic. 2020-11-02 19:02:07 -05:00
NeighborDiscovery.cpp BSL date bump 2020-08-20 12:51:39 -07:00
NeighborDiscovery.hpp BSL date bump 2020-08-20 12:51:39 -07:00
NetBSDEthernetTap.cpp BSL date bump 2020-08-20 12:51:39 -07:00
NetBSDEthernetTap.hpp BSL date bump 2020-08-20 12:51:39 -07:00
OSUtils.cpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
OSUtils.hpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
Phy.hpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
PortMapper.cpp [Android] Fix include for miniupnpc 2022-01-03 12:15:21 -05:00
PortMapper.hpp BSL date bump 2020-08-20 12:51:39 -07:00
README.md docs 2015-03-31 14:12:33 -07:00
Thread.hpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
WinDNSHelper.cpp clean up some debug logging 2020-08-12 09:16:18 -07:00
WinDNSHelper.hpp Windows DNS 2020-08-11 18:55:42 -07:00
WindowsEthernetTap.cpp Use lowercase when including Windows headers 2021-12-29 16:29:08 -05:00
WindowsEthernetTap.hpp Automatically detect Ethernet tap friendly name in Windows shouldBind stuff. 2021-03-16 10:12:55 -04:00

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.