Adam Ierymenko
|
436c1fac1d
|
Selectively move over changes from "edge" to "dev" excluding netcon.
|
2015-12-21 16:15:39 -08:00 |
|
Adam Ierymenko
|
c21882da9c
|
Put selftest back and turn off tracing in PortMapper.
|
2015-11-30 16:07:02 -08:00 |
|
Adam Ierymenko
|
f260250580
|
Simplify IP assignment logic in OSXEthernetTap, also fix for GitHub issue #249
|
2015-11-30 15:39:34 -08:00 |
|
Adam Ierymenko
|
d862d2868c
|
... and here.
|
2015-11-30 14:57:28 -08:00 |
|
Adam Ierymenko
|
1e213b4d4c
|
Need to close on premature abort too or resources are leaked.
|
2015-11-30 14:56:36 -08:00 |
|
Adam Ierymenko
|
3d66492828
|
Also add a timeout for the actual NAT-PMP port mapping step.
|
2015-11-30 14:17:58 -08:00 |
|
Adam Ierymenko
|
838fdf4d11
|
ifdef naming fix.
|
2015-11-30 13:32:30 -08:00 |
|
Adam Ierymenko
|
685c5e9ad1
|
Fix for uPnP
|
2015-11-30 13:25:34 -08:00 |
|
Adam Ierymenko
|
66a29a00ee
|
Merge miniupnpc/libnatpmp build into main build by just adding flags, defs, and objs.
|
2015-11-30 13:17:43 -08:00 |
|
Adam Ierymenko
|
6768521330
|
Ton of uPnP work and adding NAT-PMP support, still testing...
|
2015-11-30 13:10:22 -08:00 |
|
Adam Ierymenko
|
75637f68b3
|
Merge branch 'dev' of github.com:zerotier/ZeroTierOne into dev
|
2015-11-24 14:11:31 -08:00 |
|
Adrian Frühwirth
|
038476c412
|
Fix for GitHub issue #253.
Make 'ip' detection more robust (some distros don't ship the binary in /sbin or /usr/sbin).
Add error handling for cases where an ip add/remove fails.
|
2015-11-24 22:56:02 +01:00 |
|
Grant Limberg
|
764dd1c3d9
|
ARP packets do need the source IP address in them, as well as the MAC address.
Packets wouldn't even show up in WireShark without the source IP in it.
|
2015-11-21 19:14:59 -08:00 |
|
Grant Limberg
|
ac09c3569a
|
ARP packet lengths are 28 bytes. This condition required the packet to be 29 or more bytes.
|
2015-11-21 19:14:06 -08:00 |
|
Adam Ierymenko
|
0f5fb48a0b
|
Turns out it wasn't hard to add miniupnpc to the VS2012 project and just have it build with the rest of the code.
|
2015-11-16 19:04:04 -08:00 |
|
Adam Ierymenko
|
0d9f33dc4f
|
Fix: (1) Windows stack overflow due to buffer too large in peer deserialize, (2) clean up some other stuff seen during debugging and reduce the sizes of some buffers due to Windows small stack size, (3) remove a redundant try/catch.
|
2015-11-13 12:14:28 -08:00 |
|
Adam Ierymenko
|
a13ba7102a
|
GitHub issue #242 -- crappy uPnP protocol demands infinite lease time or else
|
2015-11-10 17:45:05 -08:00 |
|
Adam Ierymenko
|
2cc50bdb10
|
Try bringing back TTL escalation -- may help with Docker (IP-MASQ) type NAT
|
2015-11-09 15:44:13 -08:00 |
|
Adam Ierymenko
|
7903f24a8f
|
Create periodic backup copies of controller.db in network controller from the main process itself to facilitate easier and safer backups of controller.db.
|
2015-11-03 15:52:10 -08:00 |
|
Adam Ierymenko
|
40e0a34a5c
|
Add set buffer sizes code to Phy<>
|
2015-10-27 13:04:08 -07:00 |
|
Adam Ierymenko
|
7295fcfa86
|
Merge Phy<> from netcon.
|
2015-10-27 12:50:23 -07:00 |
|
Adam Ierymenko
|
7711eba297
|
More cluster wiring...
|
2015-10-22 16:02:01 -07:00 |
|
Adam Ierymenko
|
c1a53a2653
|
ARP cache and responder agent code for use in netcon and iOS.
|
2015-09-11 11:45:04 -07:00 |
|
Adam Ierymenko
|
cd3d77987c
|
.
|
2015-09-10 15:52:24 -07:00 |
|
Adam Ierymenko
|
9a723be263
|
Add socketpair support to Phy.
|
2015-09-10 13:18:57 -07:00 |
|
Adam Ierymenko
|
4838cbc350
|
Unix domain sockets in Phy<>
|
2015-09-02 14:32:01 -07:00 |
|
Adam Ierymenko
|
b75bdedaee
|
Manually set DeviceInstanceID since this registry key is missing on Windows Vista and Server 2008.
|
2015-08-13 15:52:54 -07:00 |
|
Adam Ierymenko
|
620562f7cf
|
Because Windows, because Windows. Now it upgrades correctly from 1.0.1, including automatic driver update from NDIS5 to NDIS6. Also a bit more robust on creating new ports, just in case.
|
2015-07-30 17:00:57 -07:00 |
|
Adam Ierymenko
|
922d9657b9
|
Save enumeration of statically assigned IPs so they will always be reassigned on device "power cycle."
|
2015-07-30 14:10:32 -07:00 |
|
Adam Ierymenko
|
1e3d5c4d87
|
Suppress icacls output on lockDownFile().
|
2015-07-30 12:05:56 -07:00 |
|
Adam Ierymenko
|
6f46f0e0e1
|
Because Windows.
|
2015-07-30 11:57:48 -07:00 |
|
Adam Ierymenko
|
8169b35482
|
Kill the devcon.exe dependency by dynamically loading cfgmgr32, newdev, and setupapi and using these functions directly.
|
2015-07-30 11:31:38 -07:00 |
|
Adam Ierymenko
|
14264c2d6f
|
Add miniupnpc builds for Windows, fix some Windows build warnings.
|
2015-07-28 16:50:18 -07:00 |
|
Adam Ierymenko
|
fe6d5b1402
|
UPNP/NAT-PMP support with libminiupnpc (if built with it) -- GitHub issue #64
|
2015-07-28 14:32:02 -07:00 |
|
Adam Ierymenko
|
40d5c79b62
|
Enable SO_NO_CHECK if available to skip UDP checksum on packet send for slight performance improvement. We do our own cryptographically secure authentication so UDP checksum is worthless.
|
2015-07-28 10:29:25 -07:00 |
|
Adam Ierymenko
|
7a15d8a7e3
|
Fix leaving of networks to actually call Network::destroy().
|
2015-07-24 14:50:44 -07:00 |
|
Adam Ierymenko
|
56285ec0d4
|
Another attempt at a fix for all the Windows driver coma issues.
|
2015-07-06 17:58:04 -07:00 |
|
Adam Ierymenko
|
494681a482
|
This might be a final fix for GitHub issue #173 and possibly others: ACTIVELY detect borked port status on Windows and if any "cable unplugged" or other wacky states are detected whack the adapter (close and reopen). Tested adding a whole bunch of windows networks, removing, adding more, etc. and it seems to work very well!
|
2015-06-12 16:02:04 +02:00 |
|
Adam Ierymenko
|
00aa115898
|
Allow double-close just in case in Phy<>
|
2015-06-09 16:30:44 +02:00 |
|
Adam Ierymenko
|
17ca5be4c1
|
Rework Phy<> to clean up _socks entries only in poll() to fix instability in proxy.
|
2015-06-09 16:27:11 +02:00 |
|
Adam Ierymenko
|
ab720a6f1e
|
Fix for poll() in Phy<> with no sockets open. Only affects tcp-proxy.
|
2015-06-05 13:48:33 -07:00 |
|
Adam Ierymenko
|
0f7dcb3ef2
|
Add some proxy debugging, and auto-resolve and periodically re-resolve TCP fallback tunnel hostname.
|
2015-05-21 15:22:41 -07:00 |
|
Adam Ierymenko
|
61021fc778
|
BackgroundResolver test.
|
2015-05-21 14:11:44 -07:00 |
|
Adam Ierymenko
|
2ad69237cf
|
Background resolver.
|
2015-05-21 13:44:33 -07:00 |
|
Adam Ierymenko
|
6fc090eb00
|
Don't actually "power cycle" the interface except on startup. Doing that after we're running could lose IP configuration.
|
2015-05-20 14:21:14 -07:00 |
|
Adam Ierymenko
|
dd70188643
|
Make tap driver even more defensive... seems to maybe fix the new network problem. Have to test a bit more.
|
2015-05-19 18:40:34 -07:00 |
|
Adam Ierymenko
|
c7eb5f0c81
|
Windows build warning removal, be more defensive in Windows tap driver code, and clean up service start/stop in installer.
|
2015-05-19 18:13:20 -07:00 |
|
Adam Ierymenko
|
0e87002d78
|
BSDEthernetTap build fixes.
|
2015-05-17 18:31:41 -07:00 |
|
Adam Ierymenko
|
ddaf3ef347
|
Bring BSDEthernetTap into the current century.
|
2015-05-17 18:28:04 -07:00 |
|
Adam Ierymenko
|
241f308334
|
Fix to tap reset code in Windows tap connector.
|
2015-05-08 16:49:08 -07:00 |
|