Commit graph

14 commits

Author SHA1 Message Date
Ian Clowes
67c3ed0d0a test_storage: extend test harness; datastorage: two bug fixes
datastorage (bug fix): deleting expired array item would fail to test next item
test_storage: extended to cover all required datastorage entry points
test_storage: added ability to read script file
test_storage: added new and revised test scripts
TESTING.md: added to describe testing approach
general: added various TODO notes on things to come back to
general: revised #includes to make each "self-compiling"
general: revised #includes to minimise usage across source files
general: moved declarations and defintions to simplify and rationalise code
datastorage: refactor to support scalability testing
datastorage: made independent of time() calls to support testing
datastorage: fixed redundant use of both SORT_NUM and SORT_LENGTH defines
datastorage: fake kicking to test clients move between access points
msghandler: new module to reduce compile time interdependencies
mshhandler: (issue #100?) fixed SEGV memcpy() in dump_client() using strncpy()
ubus: merged uface into ubus
mac_utils: new module for MAC address utilites
test_header: added target to help #include rationalisation

Tested-by: Nick Hainke <vincent@systemli.org>
2020-07-12 13:47:23 +02:00
twy_2000
0f63e00c43 tcpsocket: free con after ustream write error and make list each safe list_each is not safe against removal of list entry 2020-06-18 22:16:42 +02:00
twy_2000
a6d0ea3d1d tcpsocket: ustream_pending_data before ustream_read
according to https://github.com/yousong/osocks/blob/master/main.c#L149
and ustream source code, directly ustream_read would make many packge incomplete.
2020-06-18 12:29:29 +02:00
twy_2000
b49c5b8552 malloc: add malloc failure wrapper 2020-06-18 12:29:14 +02:00
twy_2000
b029a40b11 Revert "Revert "tcpsocket: implement client_read_cb with ustream_read my wheels are much worse than offical wheels.""
This reverts commit c2a63293d1.
2020-06-18 12:29:10 +02:00
Polynomialdivision
c2a63293d1 Revert "tcpsocket: implement client_read_cb with ustream_read my wheels are much worse than offical wheels."
This reverts commit f7343a053c.
2020-06-12 10:45:33 +02:00
twy_2000
f7343a053c tcpsocket: implement client_read_cb with ustream_read my wheels are much worse than offical wheels. 2020-06-12 07:12:36 +02:00
David Woodhouse
050c1d7fed tcpsocket: use fixed size and endianness for length prefix of network messages
We can't use host-dependent endianness for network traffic.
The size of size_t also varies from host to host so stick with uint32_t.

Fixes: #92
2020-06-08 13:19:21 +02:00
Polynomialdivision
2151db28ef tcpsocket: fix debug msg format
Fixes: https://github.com/openwrt/packages/issues/12410
2020-06-05 11:08:50 +02:00
twy_2000
653ce9fa56 network/tcpsocket: make sure every msg is complete before handle 2020-05-29 22:51:28 +02:00
Ian Clowes
50d347c233 datastorage: refactor to support scalability testing 2020-05-28 00:29:15 +02:00
twy_2000
6bad02bed7 tcpsocket: fix port print 2020-05-10 09:51:48 +02:00
Polynomialdivision
899eae05f0 survive reboot 2020-04-15 17:37:59 +02:00
Polynomialdivision
f03f55ff92 first version 2020-03-23 21:22:21 +01:00