Commit Graph

1178 Commits

Author SHA1 Message Date
Joseph Henry
5ec6f1846b Fixed uninitialized memory warning before write() 2017-09-17 23:26:38 -07:00
Joseph Henry
ed51f41b47 Fixed memory leak in VirtualTap. Used unique_ptr instead of new/delete pair 2017-09-17 23:13:33 -07:00
Joseph Henry
854dbd7947 Removed old objects file. Has been moved into single Makefile 2017-09-17 23:11:25 -07:00
Joseph Henry
c84b398a32 Consolidated platform-specific makefiles into a single Makefile 2017-09-17 23:10:10 -07:00
Joseph Henry
60800d14ba Build fix, missing include for RLIMIT_NOFILE 2017-09-15 19:55:27 -07:00
Joseph Henry
f7112da490 Added prototype for future socket option unit tests 2017-09-15 19:47:31 -07:00
Joseph Henry
23b615b39a Slightly updated macOS makefile, temporarily reverted linux makefile 2017-09-15 19:46:51 -07:00
Joseph Henry
11dcc1e959 Stubbed out some of the more obscure socket options for both drivers 2017-09-15 19:45:49 -07:00
Joseph Henry
87af06a834 Adjusted debug macros for simplicity 2017-09-15 19:31:23 -07:00
Joseph Henry
88efcf984a Updated release notes, lwip architecture port files 2017-09-15 19:30:48 -07:00
Joseph Henry
709fc40483 Upgraded lwIP to 2.0.2-STABLE 2017-09-14 13:20:49 -07:00
Joseph Henry
cc468fe8fe standardization pass: conditional statement spacing, removed NULL shorthand making checks more explicit 2017-09-14 13:19:13 -07:00
Joseph Henry
7c586471f4 standardization pass: conditional statement spacing, removed NULL shorthand making checks more explicit 2017-09-14 13:17:37 -07:00
Joseph Henry
476f162a19 standardization pass: trim_right (trailing whitespaces) 2017-09-13 23:21:15 -07:00
Joseph Henry
48a07c32a1 standardization pass: trim_right (trailing whitespaces) 2017-09-13 22:41:30 -07:00
Joseph Henry
3bec79314e Added standardization target for code style, fixed LWIP_DEBUG redefinition warning, fixed rare tcp_close() and cb_poll() bugs 2017-09-13 22:34:25 -07:00
Joseph Henry
0dc390ddcf Added differentiation of LIBZT_DEBUG and NS_DEBUG flags, other minor tweaks 2017-09-13 16:26:27 -07:00
Joseph Henry
bd68e808c1 Added repeat feature to selftest 2017-09-12 16:34:34 -07:00
Joseph Henry
ca84110a16 Added code quality and standardization profile (for use with Vera++). Increased maximum number of lwIP UDP_PCBs from 4 to 128 2017-09-12 16:34:13 -07:00
Joseph Henry
5512ede4fd Added application polling logic to lwip_cb_poll() 2017-09-11 17:01:59 -07:00
Joseph Henry
67b7c7e2e2 Added exception handling for virtual socket add/del functions 2017-09-11 17:01:02 -07:00
Joseph Henry
b36a213d47 Added LIBZT_SANITIZE option, removed APIFILES from lwIP build 2017-09-11 16:59:52 -07:00
Joseph Henry
d1396c9917 Replaced get_pico_socket() with more generic code. Added checksum note in libzt.h 2017-09-11 14:00:44 -07:00
Joseph Henry
7992e67f85 Update for NS_DEBUG 2017-09-11 11:44:52 -07:00
Joseph Henry
8b379e08b2 Added lwIP stack debug flag passthrough (e.g. NS_DEBUG=1) 2017-09-11 11:44:17 -07:00
Joseph Henry
2642a4f6d8 Added question to FAQ 2017-09-11 11:42:28 -07:00
Joseph Henry
d130d7706c Removed lwip app source, you can find this in their repo instead 2017-09-11 11:42:12 -07:00
Joseph Henry
26f906046b Commented out RAW PCB check in lwIP 2017-09-08 17:12:07 -07:00
Joseph Henry
1d4f36a811 Added selectable TCP_WRITE_FLAG_COPY mode on a per-socket basis, updated lwIP driver for socket limit checks 2017-09-08 16:13:56 -07:00
Joseph Henry
05fec81757 Added more safety checks to del_virtual_socket(), new zts_shutdown() implementation 2017-09-08 11:43:41 -07:00
Joseph Henry
4fd2db7dd6 tcp_received() fix 2017-09-07 18:09:19 -07:00
Joseph Henry
e18c1ccf80 Further improvements to selftest, lwIP driver updates 2017-09-06 18:02:30 -07:00
Joseph Henry
142c27091c Added new unit tests and time-sync code for subtests, recvfrom() fixes 2017-09-05 16:51:07 -07:00
Joseph Henry
ec323c9842 Added basic DNS functionality, fixed stack smashing bug, organizational improvements 2017-08-30 14:13:13 -07:00
Joseph Henry
be1d7082e9 Merge pull request #19 from psarna/master
Fixed potential stack corruption with sprintf
2017-08-25 11:25:04 -07:00
Piotr Sarna
f58b6152f3 Fixed potential stack corruption with sprintf
string representation of _nwid itself could take up 16 bytes,
so 17 is definitely not enough for this format string.
snprintf is used as a panic check for future changes,
so we could get a truncated string instead of stack corruption.
2017-08-25 16:35:43 +02:00
Joseph Henry
a723c70feb tap initialization patch 2017-08-24 14:26:09 -07:00
Joseph Henry
9c901350b3 lwip fix 2017-08-24 12:46:13 -07:00
Joseph Henry
0b726b3ac6 lwipdev initialization fix 2017-08-24 12:27:29 -07:00
Joseph Henry
58c0b16056 added client/server test file 2017-08-24 12:05:28 -07:00
Joseph Henry
3847a4b9f7 Merge branch 'master' of https://github.com/zerotier/libzt 2017-08-24 11:46:14 -07:00
Joseph Henry
eff90c7d13 picotcp stack driver edge case bug fixes 2017-08-24 11:45:39 -07:00
Joseph Henry
bceadfbe46 Improvements to selftest, closure bug addressed 2017-08-18 07:43:29 -07:00
Joseph Henry
69ef094a37 Added beautify_eth_proto_nums() and mac2str() 2017-08-17 14:38:13 -07:00
Joseph Henry
8472a45ce3 Renamed lwIP low-level rx/tx functions 2017-08-17 14:37:01 -07:00
Joseph Henry
f1381e3cfa Updated makefiles, locations of sample apps 2017-08-17 14:35:14 -07:00
Joseph Henry
a43fa8ebd2 Removed examples README, for now 2017-08-17 14:33:08 -07:00
Joseph Henry
ac82c46449 Merge pull request #18 from laduke/nodejs
Create node example
2017-08-16 11:52:15 -07:00
Travis LaDuke
fc210c9be5 Create node example directory 2017-08-16 11:45:35 -07:00
Joseph Henry
7d551d6198 Renamed SocketTap to VirtualTap and Connection to VirtualSocket to prevent confusion 2017-08-15 18:15:06 -07:00