Grant Limberg
31c12aebb5
more fun with linux ethernet taps
...
older kernels: must set MTU before IFF_UP.
newer kernels: must set MTU *after* IFF_UP
4 years ago
Joseph Henry
c5008031b9
Increase ifname size to accomodate Windows (issue #1560 )
4 years ago
Grant Limberg
5d63ed6739
fix function call
4 years ago
Grant Limberg
fdf4ebd43c
potential fix for 2.6.x kernels
...
detect if the kernel is super old. if so, do not execute the post IF_UP commands on the interface
4 years ago
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
4 years ago
Travis LaDuke
fa25b45198
Keep interface name on via routes on linux
...
See issue #1498
4 years ago
staphen
f83eed9ef9
[Android] Fix include for miniupnpc
4 years ago
staphen
1c956494a4
Use lowercase when including Windows headers
4 years ago
Travis LaDuke
afdc91f21f
Convince macOS to do ipv6 dns lookups
...
Puts a value into System Config, similar to how DNS push works.
closes #1466
https://apple.stackexchange.com/questions/309430/ipv6-dns-resolution-on-macos-high-sierra
4 years ago
Adam Ierymenko
fabfb10b97
Remove managed routes in destructor (regression fix).
4 years ago
Adam Ierymenko
65549cb0da
Fix the FD leak fix, and release notes.
4 years ago
Adam Ierymenko
0e798222a7
Fix FD leak on MacOS.
4 years ago
Adam Ierymenko
c890f1762a
This code is obsolete but remove vfork anyway.
4 years ago
Adam Ierymenko
c16b03c8b8
Set MAC address twice, once before and once after bringing interface up, since different kernels behave differently (Linux).
4 years ago
Adam Ierymenko
357e1aca54
Likely MAC fix for Linux.
4 years ago
Travis LaDuke
37f26beb50
Fix multicast flag on linux interfaces.
...
When we re-ordered the way the interfaces come up, this flag
stopped getting set automatically.
see 9374e45449
and github issue #1477
4 years ago
Grant Limberg
993e58773a
needed in 2 more spots
4 years ago
Grant Limberg
8f4c038e23
fix ifdef
...
wasn't running IPv6 temporary address detection for binding
4 years ago
Adam Ierymenko
594853e251
Remove deprecated vfork call on Mac, and make Mac route application more robust.
4 years ago
Adam Ierymenko
452b1e806b
Revert "Version bump, backport one more fix."
...
This reverts commit 9f9a870399 .
5 years ago
Adam Ierymenko
9f9a870399
Version bump, backport one more fix.
5 years ago
Adam Ierymenko
d2c3ea6901
Another route fix on BSD.
5 years ago
Adam Ierymenko
6bb1598fa3
Another fix for routing and interface issues on MacOS
5 years ago
Adam Ierymenko
1b8917a57c
Fix for MacOS interface setup and config timing bugs.
5 years ago
Adam Ierymenko
d1c88971ae
Possible Mac route borking fix.
5 years ago
Joseph Henry
e1af003e4f
Consolidation of multipath logic. Better system separation
5 years ago
Adam Ierymenko
126669b718
MTU fix
5 years ago
Adam Ierymenko
63a44c9268
Fix feth max MTU sysctl.
5 years ago
Adam Ierymenko
8885149cd3
Revert "Revert "Revert a change to LinuxEthernetTap threading to eliminate out of order packet issues on some systems.""
...
This reverts commit 89ddf2991b .
5 years ago
Adam Ierymenko
89ddf2991b
Revert "Revert a change to LinuxEthernetTap threading to eliminate out of order packet issues on some systems."
...
This reverts commit 0461b24db3 .
5 years ago
Adam Ierymenko
0461b24db3
Revert a change to LinuxEthernetTap threading to eliminate out of order packet issues on some systems.
5 years ago
Grant Limberg
1859365f9d
same IPv6 temp address detection code for macOS works on FreeBSD.
...
update ifdefs & go
5 years ago
Grant Limberg
ab87b8f881
Don't bind to temporary IPv6 addresses (linux)
5 years ago
Grant Limberg
b8b65da51c
Don't bind temporary IPv6 addresses (macOS)
5 years ago
Grant Limberg
198e6f765c
Don't bind to temporary Ipv6 addresses (windows)
5 years ago
Joseph Henry
13481cea18
Fix (some) compile-time warnings on Windows
5 years ago
Joseph Henry
29e5880d8b
Match formatting of Bond-related sources to ZeroTier standard (no functional changes)
5 years ago
Adam Ierymenko
d2974f2e60
Do not inherit open file descriptors on fork() in MacEthernetTapAgent
5 years ago
Jonathon Fernyhough
bac57e355d
Set MAC address before bringing up Linux TAP link
...
This corrects the flow for bringing up a TAP device under Linux by
setting the device MAC address prior to bringing up the device.
Closes #1314
5 years ago
Jonathon Fernyhough
b8b1f64959
Revert "Reorder Linux TAP link sequence"
...
This reverts commit 9374e45449 .
5 years ago
Robert.Schreib
4e8640b380
Handle case where no old DNS servers exist
5 years ago
Jonathon Fernyhough
9374e45449
Reorder Linux TAP link sequence
...
This corrects the flow for bringing up a TAP device under Linux.
Closes #1314
5 years ago
Robert.Schreib
31ffe4403c
Check if DNS servers need to be Applied on macOS
5 years ago
Dave Cottlehuber
b37e9de24d
BSD: add debug fprintfs for external commands
5 years ago
Adam Ierymenko
79e2fd4586
Automatically detect Ethernet tap friendly name in Windows shouldBind stuff.
5 years ago
Adam Ierymenko
5391e95fce
Typo fix.
5 years ago
Adam Ierymenko
954f6a77e5
Another Linux fix.
5 years ago
Adam Ierymenko
21993819a5
Possible fix for Linux deadlock.
5 years ago
Rosen Penev
2aecb547d9
LinuxNetLink: Add cerrno header for (str)errno
...
Fixes compilation under libcxx.
5 years ago
Grant Limberg
5188c7d41f
com & com security already initialized by here
5 years ago