Commit Graph

227 Commits

Author SHA1 Message Date
Joseph Henry
7fb03a7f6a Fix for NO_STACK compilation bug due to new ZT core helper API 2017-08-03 10:58:19 -07:00
Joseph Henry
9c4a5ae26b Normalized indentation for entire project to TABS 2017-08-02 14:55:18 -07:00
Joseph Henry
7e00eda5a0 Normalized indentation for entire project to TABS 2017-08-02 14:54:29 -07:00
Joseph Henry
7e30474ee4 Implemented barebones VL2 SOCK_RAW functionality, moved ZT core helper functions from OneService to libzt 2017-08-02 14:39:21 -07:00
Garrett D'Amore
25f18f870e Fix broken PICO compile (mismerge of LwIP reintroduction.) 2017-07-26 14:24:27 -07:00
Joseph Henry
409c2dc9de Added layer2 SOCK_RAW example code and stubs 2017-07-26 02:13:13 -07:00
Joseph Henry
b105ddb060 Removed old linger code, formatting fixes, other minor adjustments 2017-07-26 02:12:28 -07:00
Joseph Henry
57d7b30f0c Merge branch 'master' into gdamore-fixes 2017-07-26 00:08:10 -07:00
Joseph Henry
4e36fe28d5 BSD-license-compatible, and NO_STACK build variants 2017-07-25 23:40:24 -07:00
Garrett D'Amore
a31f81a34d Silence an aligned access warning.
clang is a bit too strict about validating address alignments
when using packed structs.  The only member is a 32-bit value,
so the alignment was correct, but this approach is "correct"
and guaranteed to work even if the structure was not aligned,
at the cost of an extra temporary variable and 32-bit copy.
2017-07-25 11:14:29 -07:00
Garrett D'Amore
24fa0c9a6c In write, buf_w was unchecked.
We already checked for room, so the buffer should have room.  We make this
a kind of assertion; this silences compiler warnings.  Later, if this
becomes a thread-level race condition, come back and actually use buf_w
more meaningfully to handle partial writes.
2017-07-25 11:03:02 -07:00
Garrett D'Amore
8a6d4820cc Debug buffer address returned from stack should be static. 2017-07-25 10:47:13 -07:00
Garrett D'Amore
1d21bc4145 zts_get_pico_socket needs to pass indirect pointer 2017-07-25 10:43:47 -07:00
Joseph Henry
4ac559a107 Added minor feature request: zts_poll/zts_select 2017-07-17 16:34:35 -07:00
Joseph Henry
43caf4a6f2 Minor changes to selftest, updated TESTING readme, removed old test personality conf files 2017-07-13 10:53:19 -07:00
Joseph Henry
494ec2508c Added stubs for poll/select, improved selftest/echotest, Added ringbuffer for more efficient RX/TX 2017-07-12 11:44:31 -07:00
Joseph Henry
195cac6d55 significant upgrade to selftest, added echotest, better checks for data in queue before socket closure 2017-06-16 16:58:30 -07:00
Joseph Henry
d3351dd2ce README updates, misc filename changes, debug trace fixes, introduction of libzt moniker 2017-06-14 16:53:59 -07:00
Joseph Henry
06682e049e bug fixes for ztproxy test 2017-06-14 15:55:40 -07:00
Joseph Henry
3793b23229 fixed connect/accept behaviour, added to selftest, renamed BSD makefile 2017-06-11 20:24:11 -07:00
Joseph Henry
f5de570334 Build fixes for FreeBSD 2017-06-08 16:09:11 -07:00
Joseph Henry
3566df2024 Dual-stack related bugfixes for ipv4/ipv6 2017-06-05 17:13:06 -07:00
Joseph Henry
19839eeac9 updated picoTCP to 1.4.0, lowered build optimization levels to -O2, improved selftest 2017-06-05 14:26:06 -07:00
Joseph Henry
47a80e8954 changed SO_LINGER value, added TODOs 2017-05-31 13:27:20 -07:00
Joseph Henry
5ab563ce4c Updated tests 2017-05-30 13:17:39 -07:00
Joseph Henry
dcdc13204c wider selftest coverage 2017-05-05 16:46:07 -07:00
Joseph Henry
d631e06d99 tweaked license text for SDK 2017-05-04 15:53:38 -07:00
Joseph Henry
4c9c28ae21 updated license header text 2017-05-04 15:35:50 -07:00
Joseph Henry
307d164938 updated core to 1.2.4, fixed pico_device init bug 2017-05-04 15:33:33 -07:00
Joseph Henry
890e32e88b added java example 2017-05-04 13:06:39 -07:00
Joseph Henry
64f2634960 Added isPrefixEqual, fixed unit test bug, fixed ipv6 bind bug 2017-05-03 21:12:26 -07:00
Joseph Henry
8351854e90 checks for invalid Connections 2017-05-02 09:35:27 -07:00
Joseph Henry
ef1a708249 updates to picoTCP driver code 2017-05-02 09:33:06 -07:00
Joseph Henry
9a4ab4a85c Connections now have a default SO_LINGER=2 2017-05-02 09:32:10 -07:00
Joseph Henry
7867a157d0 Added errno checklists 2017-05-01 18:18:20 -07:00
Joseph Henry
6a25abb757 various bug fixes 2017-04-21 14:56:42 -07:00
Joseph Henry
76abb3e0a2 improved testing and connection handling 2017-04-20 13:39:46 -07:00
Joseph Henry
c65b609fb4 spring cleaning 2017-04-14 17:23:28 -07:00
Joseph Henry
3052f55d12 Added SocketTap multiplexing logic 2017-04-07 17:56:05 -07:00
Joseph Henry
08cca3c7aa dynamic loading of network stack no longer needed 2017-04-06 19:16:01 -07:00
Joseph Henry
997f12a592 removed all contents 2017-04-06 19:14:04 -07:00
Joseph Henry
bd3b07e00a Updated core for tptr support 2017-03-28 18:56:38 -07:00
Joseph Henry
932135bb1a gracefully handle invalid addrlen value in recvfrom 2017-03-22 16:51:43 -07:00
Joseph Henry
52d01b9e85 minor tweaks for build warnings on linux 2017-03-21 12:00:19 -07:00
Joseph Henry
692d516098 added peer-related accessors to zts_* API 2017-03-20 10:15:35 -07:00
Joseph Henry
db3bf75b7d fixed longstanding buffer logic bug 2017-03-20 07:54:08 -07:00
Joseph Henry
2f57ea600a updated makefiles 2017-03-20 00:04:10 -07:00
Joseph Henry
1b362d3228 removed conflict markers from merge 2017-03-19 23:21:44 -07:00
Joseph Henry
48f2aaf6ca merging recent upgrades into master 2017-03-19 22:47:51 -07:00
Joseph Henry
5c41a0c75c added 6PLANE address address/ID getters for zts_* API 2017-03-17 17:31:22 -07:00