Commit Graph

267 Commits

Author SHA1 Message Date
Adam Ierymenko
cbf8d9c45b . 2015-12-04 12:43:48 -08:00
Adam Ierymenko
905253b4f5 First draft (unfinished) of new README for netcon (original in README.orig.md). 2015-12-04 12:43:21 -08:00
Joseph Henry
d9b12be697 ZT_NC_NWID patch + (WIP) test script modifications 2015-12-04 12:39:54 -08:00
Joseph Henry
2196d982c3 (fixed) nwid detection in test script 2015-12-03 18:50:20 -08:00
Joseph Henry
5c5943a00c (fixed) test script liblwip.so placement, also streamlined test logic 2015-12-03 07:11:33 -08:00
Adam Ierymenko
ef4472e185 Intercept now checks ZT_NC_NWID environment variable for 16-digit network ID and does not initialize if not present. 2015-11-23 13:59:38 -08:00
Adam Ierymenko
4acb3d81f3 Rename Common to common.inc.c to indicate that this is an included C file not a primary build C file. 2015-11-23 13:25:46 -08:00
Adam Ierymenko
bee44ae731 Merge Sendfd into Common.c 2015-11-23 13:24:28 -08:00
Adam Ierymenko
95106e2e30 Mare make-self-contained code cleanup. 2015-11-23 13:18:46 -08:00
Adam Ierymenko
2a6ea38718 More code cleanup, just moving some stuff into NetconEthernetTap that is not used elsewhere. 2015-11-23 13:02:50 -08:00
Adam Ierymenko
d8d4cfbf01 Eliminate a few warnings and some small code reorg. 2015-11-23 12:43:42 -08:00
Adam Ierymenko
7a84805824 Uncommit binary... :P 2015-11-23 12:34:23 -08:00
Adam Ierymenko
1d4563ac31 A few very tiny bits of dead code removal, etc. 2015-11-23 12:32:20 -08:00
Adam Ierymenko
1e4a40e772 Reformat table. 2015-11-23 10:11:46 -08:00
Joseph Henry
6e5feaba3a Updated test files 2015-11-23 07:08:07 -08:00
Joseph Henry
71b38a48ac Replaced README 2015-11-23 06:22:09 -08:00
Joseph Henry
6a3f230555 Unit test info added to README 2015-11-23 06:20:01 -08:00
Joseph Henry
a952ff2c61 Removed odd file 2015-11-23 06:11:19 -08:00
Joseph Henry
05e51f40b4 README formatting update. Removed odd files 2015-11-23 06:07:48 -08:00
Joseph Henry
b83aefcf8f Updated README, fixed node.js test bug 2015-11-23 05:59:05 -08:00
Joseph Henry
8b9b593256 Removed old READMEs and OS files 2015-11-23 05:21:20 -08:00
Joseph Henry
275a76ff5c Test update 2015-11-23 05:15:19 -08:00
Joseph Henry
3d163f7044 Patch for Node.js -- accept() bug 2015-11-23 01:14:17 -08:00
Joseph Henry
d472c59b8d Additional test files 2015-11-20 02:41:27 -08:00
Joseph Henry
126fc46dc4 Updated makefile, removed old results directory 2015-11-20 01:22:15 -08:00
Joseph Henry
1f27022fa7 Test/Code Refactor in preparation for merge 2015-11-20 01:08:38 -08:00
Joseph Henry
31bc5e1559 WIP: Unit tests 2015-11-19 16:21:59 -08:00
Joseph Henry
a660ec490e Started work on automated unit test scripts 2015-11-17 02:28:23 -08:00
Joseph Henry
f5c2600ca4 Added symbol checks in intercept. This seems wise after all 2015-11-16 23:57:19 -08:00
Joseph Henry
b0f6dc43b4 Revised fd RX logic 2015-11-16 19:53:59 -08:00
Joseph Henry
f2289544b7 Check for fork/clone and re-initialize in close() -- for nginx 2015-11-16 17:44:11 -08:00
Joseph Henry
a6cffefa6d Updated compatibility 2015-11-12 17:15:44 -08:00
Joseph Henry
a818c622d9 Updated throughput_httpd docker test files 2015-11-12 16:57:45 -08:00
Joseph Henry
7d8084262a Fixed rpc_st command alignment bug for RPC_SOCKET 2015-11-12 16:48:08 -08:00
Joseph Henry
6af54c5943 Minor debug updates 2015-11-12 14:49:20 -08:00
Joseph Henry
fa7220ec0e Removed old Common.h 2015-11-12 14:35:58 -08:00
Joseph Henry
d1a22a0878 Streamlined debug output code 2015-11-12 14:32:27 -08:00
Joseph Henry
e5fad005a9 Updated RPC handling 2015-11-12 08:21:05 -08:00
Joseph Henry
82a60b1e28 Fixed throughput build script 2015-11-09 20:16:27 -08:00
Joseph Henry
19f09e46fa Moved/Renamed Docker test dirs 2015-11-09 19:37:19 -08:00
root
134ad8ac21 Changed httpd version in throughput-test Dockerfile 2015-11-09 19:13:53 -08:00
Joseph Henry
3e84e8b8c3 Performance tweaks to lwipopts.h (TX=12MB/s) 2015-11-04 14:45:26 -08:00
Joseph Henry
4b07987210 Added throughput-test Docker files 2015-11-03 18:10:39 -08:00
Joseph Henry
df391c8413 Added debug statements for transfer test 2015-11-03 10:30:18 -08:00
Joseph Henry
ccbdb1a3a1 RPC command index fix 2015-11-02 16:09:28 -08:00
Joseph Henry
8d7b2cd486 Removed serv. conn. checks. 2015-11-02 15:52:12 -08:00
Joseph Henry
fd33e0812c Added checks for bad service connection. 2015-11-02 15:31:57 -08:00
Joseph Henry
24ffb22fa6 Changed default debug level 2015-11-02 13:26:59 -08:00
Joseph Henry
da462bbd55 Removed curses dependency 2015-11-02 13:21:40 -08:00
Joseph Henry
bb912cff30 More appropriate phyOnUnixClose handling 2015-11-02 12:50:32 -08:00
Joseph Henry
6338a4933b Fixed another closure bug. Updated debug levels 2015-11-02 12:30:18 -08:00
Joseph Henry
4dbb84cea1 Fixed connection closure bug (ERR_ABRT from nc_recved) 2015-11-02 10:59:46 -08:00
Joseph Henry
db473beb48 Fixed accept return value / errno bug, also fdret_sock return bug 2015-10-30 17:00:30 -07:00
Joseph Henry
96eb0ce492 Added state dump, fixed numerous RPC related bugs 2015-10-29 17:57:59 -07:00
Joseph Henry
f6e0bdb2f2 Fixed PCB state issue when closing connection 2015-10-28 16:18:08 -07:00
Joseph Henry
c8f27da294 Added support for MongoDB (server side) 2015-10-28 14:37:46 -07:00
Joseph Henry
21889305e0 Updated README.md 2015-10-27 17:41:51 -07:00
Joseph Henry
18db95d0e9 Updated README.md 2015-10-27 17:38:56 -07:00
Joseph Henry
721d58b464 Added support for Redis 2015-10-27 17:12:32 -07:00
Joseph Henry
8cfee8a38c Changed to more appropriate APP_POLL_FREQ 2015-10-23 14:31:06 -07:00
Joseph Henry
80a73cb14b Minor cleanup 2015-10-23 14:23:04 -07:00
Joseph Henry
b48ed824e6 Improved RPC connection closure logic 2015-10-23 13:37:41 -07:00
Joseph Henry
236e474553 Unload lwipstack->_libref upon exit 2015-10-22 16:26:29 -07:00
Joseph Henry
2f4628520b Improved RPC connection cleanup logic 2015-10-22 13:20:50 -07:00
Joseph Henry
b203d25656 PhySocket NULL check added to handle_write. Fixed after-close handle_write segfault 2015-10-22 12:40:01 -07:00
Joseph Henry
8e7e409fce Updated netcon README 2015-10-21 16:56:39 -07:00
Joseph Henry
1458dc8347 set O_NONBLOCK default in accept() 2015-10-21 16:32:27 -07:00
Joseph Henry
303579cb42 Added Node.js support 2015-10-21 16:27:17 -07:00
Joseph Henry
8b03965912 Added status debugs 2015-10-16 19:30:01 -04:00
Joseph Henry
0405ba1ccf Misc changes 2015-10-16 18:02:07 -04:00
Joseph Henry
b96c08f35c Fixed nginx listen() bug 2015-10-16 14:43:38 -04:00
Joseph Henry
3e8e025704 Minor cleanup items 2015-10-14 19:55:21 -04:00
Joseph Henry
499d1628c7 Improved error coverage 2015-10-14 17:59:11 -04:00
Joseph Henry
e722eab892 Disabled TCP listen backlog, must be enabled in lwipopts.h 2015-10-14 17:03:32 -04:00
Joseph Henry
9ca699c86d Added support for listen backlogs 2015-10-14 16:04:26 -04:00
Joseph Henry
d45db0f5af Fixed premature connection close bug 2015-10-14 15:46:22 -04:00
Joseph Henry
0b5a2a7594 Removed character from NEtconEthernetTap.cpp 2015-10-14 13:49:13 -04:00
Joseph Henry
831a513b2d Normalized cases 2015-10-14 13:47:35 -04:00
Joseph Henry
a35b6589d2 Removed lowercase intercept.h conflicting file 2015-10-14 13:43:12 -04:00
Joseph Henry
3c8e74023f Inconsequential. Updated commends, added debug statements 2015-10-13 20:20:45 -04:00
Joseph Henry
71c6ec71e5 connect() now checks socket family 2015-10-13 19:27:19 -04:00
Joseph Henry
1fd04557c7 Refactored connect(), added checks to socket(), updated checklists 2015-10-13 19:12:12 -04:00
Joseph Henry
aa6ff039c4 Improved bind() logic, added more error handling to accept() 2015-10-13 18:33:56 -04:00
Joseph Henry
8a05efa365 EBADF, EOPNOTSUPP, EMFILE error repoarting for accept() 2015-10-13 17:57:17 -04:00
Joseph Henry
da536cc311 Improved error reporting 2015-10-13 17:37:54 -04:00
Joseph Henry
0912d4be59 Fixed socket protocol check logic in socket() 2015-10-13 17:05:11 -04:00
Joseph Henry
73145de618 Added some parameter checks from linux kernel syscall source 2015-10-13 14:27:30 -04:00
Joseph Henry
82052459a2 Odds and ends 2015-10-12 21:50:41 -04:00
Joseph Henry
4e1e857949 Minor bug fixes 2015-10-12 21:26:32 -04:00
Joseph Henry
8d1b01cb5b Bug fix: Connection fd lookup in service 2015-10-12 20:46:59 -04:00
Joseph Henry
5dffa43201 Additional retval+errno handling 2015-10-12 19:29:27 -04:00
Joseph Henry
6b1a38f14c Better retval+errno handling 2015-10-12 16:38:08 -04:00
Joseph Henry
fe8e7ded8c retval+errno return test 2015-10-09 20:27:38 -04:00
Joseph Henry
07536216c2 Removed netcon/.depend 2015-10-09 17:36:27 -04:00
Joseph Henry
3bcb6bf321 Minor cleanup 2015-10-09 17:31:22 -04:00
Joseph Henry
7f56678d84 Added liblwip.so and libintercept build files 2015-10-09 17:06:09 -04:00
Joseph Henry
e3ec000e93 Added intercept build file and sources 2015-10-09 15:41:16 -04:00
Joseph Henry
769bad3320 Test: Added handle_write call to nc_poll 2015-10-09 15:05:45 -04:00
Joseph Henry
6600b005b6 No Whack! 2015-10-08 21:24:51 -04:00
Joseph Henry
b5b57aca02 Whack! 2015-10-08 21:04:47 -04:00
Joseph Henry
d868a234da Refactored write logic 2015-10-08 19:38:29 -04:00
Joseph Henry
41dfbe544f Removed exit(0) for debugging 2015-10-08 18:10:10 -04:00
Joseph Henry
bbfc9359e9 Minor timer changes (~21 Mb/s local) 2015-10-08 17:55:58 -04:00
Joseph Henry
1bc33ae8d7 Minor debug output changes 2015-10-06 21:22:08 -04:00
Joseph Henry
36db5865e7 Refactored tcp_write code - Reduced CPU usage to respectable levels 2015-10-06 20:32:48 -04:00
Joseph Henry
77b385fb12 Re-added Apache to Dockerfile 2015-09-28 17:30:18 -04:00
Joseph Henry
299ec12b39 Added docker-test folder 2015-09-27 21:16:02 -04:00
Joseph Henry
b21c5d8e51 Added dockerfile 2015-09-27 20:51:32 -04:00
Joseph Henry
3bc9530db7 Object-Model refactor: Removed notion of Client 2015-09-27 06:08:39 -04:00
Joseph Henry
fe78eb77d4 Fixed another closure bug 2015-09-24 19:22:56 -04:00
Joseph Henry
8a8264bc39 Fixed their_fd closure bug 2015-09-24 17:33:25 -04:00
Joseph Henry
1119f64a77 Fixed connection closure issue 2015-09-24 17:10:30 -04:00
Joseph Henry
c25ceaf06b Fixed recursive lock problem in closeConnection 2015-09-24 16:15:14 -04:00
Adam Ierymenko
b263926ea6 thread fixes. 2015-09-24 13:02:10 -07:00
Adam Ierymenko
84747b1a14 thread fixes... 2015-09-24 13:01:19 -07:00
Joseph Henry
9396b8d53c Minor debug changes 2015-09-24 15:56:48 -04:00
Joseph Henry
37497ec2a8 Minor changes 2015-09-24 15:31:11 -04:00
Joseph Henry
851e4c667f Minor changes 2015-09-24 15:30:07 -04:00
Adam Ierymenko
9feeafd757 Make LWIPStack thread safe. 2015-09-24 12:29:10 -07:00
Joseph Henry
0027a1e152 Merge branch 'netcon' of http://10.6.6.2/zerotier/zerotierone into netcon 2015-09-24 14:33:49 -04:00
Joseph Henry
65af5af138 Added debug statements 2015-09-24 14:33:15 -04:00
Adam Ierymenko
557d2b3b0d Make LWIPStack clean up properly. 2015-09-24 11:11:16 -07:00
Joseph Henry
557c0c29b0 minor changes 2015-09-23 19:45:44 -04:00
Joseph Henry
c85dd262ed moved lib files to ext 2015-09-23 18:03:21 -04:00
Joseph Henry
02d5a31822 added lwip unix port lib files 2015-09-23 17:55:15 -04:00
Joseph Henry
bbdb8eb0de more commenting and cleaning 2015-09-23 15:23:26 -04:00
Joseph Henry
b6a6346405 commenting and cleanup 2015-09-23 14:23:36 -04:00
Joseph Henry
07cef1bdb8 misc cleanup 2015-09-22 19:53:36 -04:00
Joseph Henry
3cb8070980 it's alive! -- hooked up new fd-handling code 2015-09-22 18:44:54 -04:00
Joseph Henry
3ed5edb295 fixed fd-transfer logic bug, needs new write-queue logic 2015-09-22 17:43:20 -04:00
Joseph Henry
c3dbae8d5e more debugs 2015-09-22 13:35:37 -04:00
Joseph Henry
b2494b53e6 adjusted output size for packets 2015-09-22 13:27:27 -04:00
Joseph Henry
f091a074d4 output lengths 2015-09-22 13:25:24 -04:00
Joseph Henry
f80d65286c more debug statements 2015-09-22 13:21:33 -04:00
Adam Ierymenko
0271e3d3ac . 2015-09-22 10:00:00 -07:00
Joseph Henry
00cb8dbda8 timer change 2015-09-22 12:48:53 -04:00
Joseph Henry
025069de7e timer change 2015-09-21 20:51:35 -04:00
Joseph Henry
86673bd6d6 fixed minor bugs and added debug outputs 2015-09-21 19:39:26 -04:00
Joseph Henry
cb6864f04a updated nc_accept and lwip.so 2015-09-15 20:32:00 -04:00
Joseph Henry
701e1654a1 moved IP/netif allocation code 2015-09-15 19:06:16 -04:00
Joseph Henry
732de5bf7f some cleanup 2015-09-15 18:47:40 -04:00
Joseph Henry
11731af45a it's alive! 2015-09-15 18:27:52 -04:00
Joseph Henry
735ae9b369 debug changes 2015-09-15 15:41:57 -04:00
Joseph Henry
8ea83c9548 netif code hooked up 2015-09-15 14:15:59 -04:00
Joseph Henry
8189b2ba91 retval fix 2015-09-11 19:29:35 -04:00
Joseph Henry
e73868bc5a various segfault fixes 2015-09-11 19:02:44 -04:00
Joseph Henry
6f0bc1f676 added debugs, fixed linux makefile 2015-09-11 18:22:41 -04:00
Joseph Henry
bc666d0ab7 added pbuf alloc block 2015-09-11 15:26:39 -04:00
Adam Ierymenko
a8d7a31327 Integrate arp into NetconEthernetTap. 2015-09-11 12:12:45 -07:00
Joseph Henry
c2226cf0df added TRACEs 2015-09-11 14:47:16 -04:00