This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/osdep
travis laduke a6742b7f82 Prevent shadowing VM routes as default route (macOS)
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.
2022-12-23 16:18:00 -08:00
..
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2016-12-27 11:57:05 +01:00
2020-08-20 12:51:39 -07:00
2020-11-16 11:11:52 -08:00
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2020-08-20 12:51:39 -07:00
2022-05-13 09:34:15 -07:00
2022-09-20 14:27:34 -07:00
2020-08-20 12:51:39 -07:00
2015-03-31 14:12:33 -07:00
2020-08-12 09:16:18 -07:00
2020-08-11 18:55:42 -07: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.