Andrew Bettison
e82d22d765
Add alloca_poll_events() macro
2013-10-25 00:19:58 +10:30
Andrew Bettison
fa21bec880
Rewrite HTTP server
2013-10-25 00:19:37 +10:30
gardners
e9e0a1b4a4
allow setting of % of 252 byte RS protected packets that we want
...
to have delivered. Adjust tests accordingly. Create new test
for ~50% packet delivery on fakeradio in preparation for network
coding.
2013-10-23 19:45:50 -07:00
gardners
31b314d2da
add context switching speed test to "test memory" command.
2013-10-22 13:12:10 -07:00
gardners
6ff2ae4871
add memory write speed test.
2013-10-22 12:53:34 -07:00
gardners
17d2dda6ae
add simple memory performance test
2013-10-22 12:37:10 -07:00
gardners
fd6db45759
stop failure to get commit id when in a git repository but not on
...
a tagged branch (fd 5 was non-existent). Not tested with a tagged
branch.
2013-10-22 12:23:03 -07:00
Jeremy Lakeman
37316abe0f
Fix empty if test typo
2013-10-21 13:23:02 +10:30
gardners
6ee774f10b
build when not in git repostory.
2013-10-20 14:59:00 -07:00
Andrew Bettison
640a61cbe5
Add 'debug.rhizome_httpd' config option
2013-10-16 11:23:45 +10:30
Andrew Bettison
00cf61721d
Rename http_header_complete() to is_http_header_complete()
2013-10-16 11:22:02 +10:30
Andrew Bettison
609e47faba
Add str_to_int() and str_to_uint()
2013-10-16 11:16:04 +10:30
Jeremy Lakeman
d5d5737f1c
Rename 'id revoke' to 'id relinquish' to match documentation
2013-10-15 14:52:07 +10:30
Andrew Bettison
017286b158
Merge branch 'development' into 'naf4'
2013-10-15 11:16:56 +10:30
Andrew Bettison
878ddb135d
Fix sprintf(3) formats - change some %d to %u
2013-10-15 11:15:31 +10:30
Andrew Bettison
3d3e900e72
First HTTP RESTful interface tests
2013-10-14 17:46:09 +10:30
Andrew Bettison
f3f39faf84
Improve test defs: setup_jq()
...
For test fixtures that need the jq(1) JSON filter utility
2013-10-14 16:50:02 +10:30
Andrew Bettison
70af3289f6
Refactor setup for 'rhizomeops' test script
2013-10-14 16:49:06 +10:30
Andrew Bettison
eb46cc99b3
Improve test defs: setup_curl()
...
Replace setup_curl_7() function in separate test scripts with a single,
general setup_curl() function in testdefs.sh which takes the minimum
version number as its argument.
2013-10-14 16:48:20 +10:30
Andrew Bettison
ef2cc1404c
Improve test framework: tfw_cmp_version()
...
Also add unit tests for test framework itself
2013-10-14 16:45:56 +10:30
Jeremy Lakeman
c7fa395968
Fix format patterns for 64-bit compilation
2013-10-14 14:45:43 +10:30
Jeremy Lakeman
b8ec568711
Send 3-way request to stop routing an identity
2013-10-14 14:40:19 +10:30
Andrew Bettison
0437e4adbb
Add writev_all() function
...
Use it in rhizome_write_manifest_file() instead of two separate write(2)
system calls or buffered stdio.
2013-10-12 03:54:18 +10:30
Andrew Bettison
97cbebc91e
Issue #11 : improve types in file i/o functions
...
Use open(2)/read(2)/write(2) instead of fopen(3)/fread(3)/fwrite(3) in
several places to avoid unnecessary buffering
Fix a bug in Rhizome HTTP add's handling of unconfigured manifest
template file
Improve some debug and error logging for file i/o
2013-10-11 16:24:51 +10:30
Andrew Bettison
49729cc768
Remove default service=file for new manifests
2013-10-11 15:39:10 +10:30
Andrew Bettison
974c7a56a0
Issue #11 : Use rhizome_filehash_t everywhere
2013-10-11 15:35:27 +10:30
Andrew Bettison
c97bd4a69a
Rewrite two major SQL queries using new bind syntax
...
Extend bind varargs syntax to handle optionally-NULL parameters.
2013-10-10 17:17:03 +10:30
Andrew Bettison
147eec4315
Fix compiler warning on Linux ix86
2013-10-10 17:17:03 +10:30
Jeremy Lakeman
0c1c767af0
Wait until sid from local keyring is unreachable before claiming ownership
2013-10-10 15:59:44 +10:30
Jeremy Lakeman
ef7351bddc
Unload identities from a running daemon
2013-10-10 14:27:00 +10:30
Andrew Bettison
221fc4a4fc
mdp_port_t
2013-10-09 19:22:51 +10:30
Andrew Bettison
a95ef79139
Use sid_t everywhere
...
Remove stowSid() at last
Change API of tohex() and strbuf_tohex(), to pass string length instead of
binary byte count. This allows odd numbers of hex digits to be produced.
Remove alloca_tohex_sid(); replace with alloca_tohex_sid_t()
New alloca_tohex_sid_t_trunc() macro
2013-10-09 18:54:21 +10:30
Jeremy Lakeman
ae7e120ed5
Pass keyring entry pin to running daemon and unlock identities
2013-10-09 15:34:41 +10:30
Jeremy Lakeman
60e3f5a3fc
Fix printf formats for 64bit compilation
2013-10-09 10:31:52 +10:30
Andrew Bettison
c9f9025581
Fix intermittent 'routing' test failures
...
Caused by tests running so slowly that nodes become unreachable due to
timeout before the assertion of reachability is made. The timeout was
hard coded at five times the tick interval (2.5 seconds).
Introduced new config options: mdp.iftype.*.reachable_timeout_ms and
interface.*.mdp.reachable_timeout_ms to allow the timeout to be
configured. Configure the timeout to 60 seconds in 'routing' tests.
Changed the config schema to move options interfaces.*.mdp_tick_ms and
interfaces.*.packet_interval into interfaces.*.mdp.tick_ms and
interfaces.*.mdp.packet_interval (introduced new sub-struct 'mdp').
2013-10-08 16:36:07 +10:30
Andrew Bettison
2119433bb0
Issue #11 : fix printf "%zd" ssize_t warnings on Android
...
Also use ssize_t instead of 'int' in a few suitable places
2013-10-08 15:39:29 +10:30
Andrew Bettison
9ba08e465f
Issue #11 : use socklen_t instead of int where appropriate
...
Also check for valid recvaddrlen before processing a received MDP packet.
2013-10-08 14:11:00 +10:30
Andrew Bettison
1c96164b62
Issue #11 : uint16_t instead of unsigned short for URI port number
2013-10-08 09:56:54 +10:30
Andrew Bettison
7a8d750a0e
Issue #11 : uint16_t instead of short for TCP port number
2013-10-07 23:37:37 +10:30
Andrew Bettison
ffafae86b1
Issue #11 : replace long long with int64_t
2013-10-07 05:54:46 +10:30
Andrew Bettison
1c8e01af9d
urandombytes() size_t instead of unsigned long long
2013-10-07 04:47:23 +10:30
Andrew Bettison
5d7ea6e6f5
Improve logic and logging in server_pid()
2013-10-07 04:47:23 +10:30
Andrew Bettison
55edc74482
Fix intermittent 'rhizomeops' test failure
2013-10-07 04:47:14 +10:30
Andrew Bettison
8970c4ece7
Improved debug to help diagnose MDP failures on Android
2013-10-07 04:47:13 +10:30
Andrew Bettison
6fadb73f1f
Improve version_string.sh: detect changes in submodules
2013-10-07 04:47:13 +10:30
Andrew Bettison
3758b038ab
Merge branch 'sqlbind' into 'development'
...
Issue #69 : Fixed SQL injection vulnerabilities (for good?) by replacing
sprintf(3)-style SQL statement composition with a varargs parameter
binding syntax.
Introduced rhizome_bid_t type and used it everywhere instead of unsigned
char [RHIZOME_MANIFEST_ID_BYTES]. Bundle IDs are now stored and passed
around internally almost entirely in binary form.
2013-10-04 11:59:03 +09:30
Andrew Bettison
7b427d48ee
A few more uses of rhizome_bid_t
...
Now the TEXT_TOUPPER SQL bind action is only used for filehash hex
strings; all Bundle ID parameters are bound using RHIZOME_BID_T.
2013-10-04 04:50:37 +09:30
Andrew Bettison
e3f64516d5
Add config option 'debug.rhizome_bind'
2013-10-04 03:46:52 +09:30
Andrew Bettison
f5e7db089c
Fix bugs revealed by test failures
...
Introduced by the recent change to rhizome_bid_t everywhere
2013-10-04 03:12:52 +09:30
Andrew Bettison
c3a4ab1f25
Fix two Rhizome Direct test cases
2013-10-04 03:11:54 +09:30