Andrew Bettison
96e686c680
servald 'stop' command loads config permissively
2012-12-07 15:57:40 +10:30
Andrew Bettison
08fc41f893
Merge branch 'master'
2012-12-07 14:12:43 +10:30
Andrew Bettison
8425882ffc
Merge branch 'newconfig' into 'master'
...
Conflicts:
commandline.c
conf.h
dataformats.c
log.h
overlay_address.c
overlay_interface.c
packetformats.c
rhizome.c
serval.h
tests/directory_service
vomp_console.c
2012-12-07 14:09:55 +10:30
gardners
be9cefc5ba
fixed bug when reporting hash of files during rhizome extract file.
2012-12-07 13:57:26 +10:30
Andrew Bettison
ecdf32fbe2
Rename cf_opt_port() to cf_opt_uint16_nonzero()
...
Improves the usefulness of the 'config schema' output.
2012-12-07 11:14:05 +10:30
Andrew Bettison
b4f6aa5ea2
Improve 'config schema' output to include NODE parsing functions
2012-12-07 10:57:05 +10:30
Andrew Bettison
21509e0b67
Add 'config schema' command to dump schema
...
That was easy.
2012-12-06 17:54:30 +10:30
Jeremy Lakeman
4b73e42bed
Merge remote-tracking branch 'origin/master' into rhizomeovermdp
...
Conflicts:
rhizome_fetch.c
2012-12-06 13:27:04 +10:30
Jeremy Lakeman
7e59df86fe
Rewind announcements on sql failures
2012-12-06 12:33:44 +10:30
Andrew Bettison
fe042bfa64
Servald 'config [ set|del ... ] ... ' command
...
Update all test scripts to avoid repetitive executeOk_servald invocations.
2012-12-06 12:31:19 +10:30
Jeremy Lakeman
ce48ca97b0
Validate abbreviation length
2012-12-06 12:21:40 +10:30
Jeremy Lakeman
dfe14dc504
Merge remote-tracking branch 'origin/master' into packet_format
2012-12-06 11:56:47 +10:30
Jeremy Lakeman
4557c82b1f
Increase delay before failing tests
2012-12-06 11:54:09 +10:30
Jeremy Lakeman
e956998d94
Clamp maximum jitter delay
2012-12-06 11:53:38 +10:30
Jeremy Lakeman
587350e72e
Fix alignment issues in probe packets
2012-12-06 10:59:19 +10:30
Jeremy Lakeman
f28e95b078
Don't scan broadcast address, limit network size
2012-12-06 10:42:34 +10:30
Jeremy Lakeman
59babd75a2
Fix SEGV if connect fails immediately
2012-12-06 10:35:20 +10:30
gardners
e8cfac1462
don't try mdp fall back when performing an http rhizome direct transfer.
2012-12-06 09:42:27 +10:30
gardners
e2cf0ff506
fixed bug with rhizome direct sync manifest fetching.
2012-12-06 09:31:41 +10:30
Andrew Bettison
4985359158
Fix 'rhizomestress' test failures
2012-12-05 16:11:23 +10:30
Andrew Bettison
9e6059e473
Fix 'routing' test failures
2012-12-05 15:50:34 +10:30
Andrew Bettison
b497c88d9d
Fix 'directory_service' test failures
...
New configuration schema.
2012-12-05 15:47:14 +10:30
Jeremy Lakeman
f6f12f8de7
Add text codec to console operation
2012-12-05 15:38:05 +10:30
Jeremy Lakeman
a4eaf37bbd
Shrink vomp headers, reduce servald's knowledge of codec details
2012-12-05 15:38:04 +10:30
Jeremy Lakeman
383cc2371d
Record packet timing info
2012-12-05 15:36:46 +10:30
Andrew Bettison
250fad71e8
Fix 'dnaprotocol' test failures
...
Config option "mdp.TYPE.tick_ms" is now "mdp.iftype.TYPE.tick_ms"
2012-12-05 15:26:25 +10:30
Andrew Bettison
1a3f916cfb
Fix 'rhizomeprotocol' test failures
...
Config option rhizome.direct.peer.count is no longer required.
Bug in new URI parsing code.
2012-12-05 15:23:59 +10:30
Jeremy Lakeman
3dfd64f4da
Add manually triggered network scan command
2012-12-05 15:13:47 +10:30
Andrew Bettison
8384fed9c5
Fix failing 'dnahelper' test
2012-12-05 14:51:38 +10:30
Andrew Bettison
aa638a9bfd
Fix new 'interfaces' config option
...
Introduce CFINCOMPATIBLE config parse result flag.
Sort interface rules by unsigned integer key.
Legacy and modern 'interfaces' config styles are now incompatible.
Validate config_network_interface struct to enforce that only exactly one of
'match' and 'dummy' options are set.
Add test cases for 'interface' config option.
2012-12-05 12:58:07 +10:30
Jeremy Lakeman
0ca9612a96
Send redundant probe payloads
2012-12-05 10:20:09 +10:30
Andrew Bettison
c53789d764
Legacy 'interfaces' config option improvements
...
Legacy form is now incompatible with modern form.
Test case to check legacy parsing.
2012-12-04 18:22:26 +10:30
Andrew Bettison
93c38a764d
Improve servald 'config' 'set' and 'del' commands
...
Return exit status 2 if the new config is invalid in any way.
2012-12-04 18:20:53 +10:30
gardners
5416e4baca
fixed bugs that were preventing writing to database blob from
...
buffer. Increased maximum buffer size to useful size.
2012-12-04 17:26:47 +10:30
gardners
39f99da3f2
fixing various bugs with rhizome streaming to database.
2012-12-04 17:18:31 +10:30
Andrew Bettison
71ed78e058
Make all 'config' tests pass
...
Change a test case: configuration options are now case sensitive.
Fix config file load and parse logic in conf.c, always copy 'debug' flags
from config.debug.
The config schema 'interfaces' option is no longer MANDATORY.
Introduce new CLIFLAG_PERMISSIVE_CONFIG to supress bad-config ERROR messages
from the 'config set' and 'config get' commands.
Refactor cli_execute() into cli_parse() and cli_invoke(). Use *const* struct
command_line_option everywhere.
2012-12-04 16:52:49 +10:30
Jeremy Lakeman
6a5efcc445
Remove buggy debug code
2012-12-04 16:50:27 +10:30
gardners
f827c7c1c8
fixed various problems following split of files into fileblobs
2012-12-04 16:47:45 +10:30
Jeremy Lakeman
1dcbb28b61
Send rhizome mdp data unicast if required
2012-12-04 16:38:18 +10:30
Jeremy Lakeman
33e44ed6be
Don't unwatch if the file descriptor is already closed
2012-12-04 16:30:01 +10:30
Jeremy Lakeman
55cad42932
Make sure the buffer for cryptobox doesn't move
2012-12-04 16:19:50 +10:30
gardners
6dfe654ab0
adjusted tuning of Rhizome over MDP to use 32x1KB packets for
...
better throughput. Still sub-optimal for wired ethernet type
interfaces, but should be ok for WiFi where max broadcast throughput
is 100kb/sec.
2012-12-04 16:19:22 +10:30
gardners
3ace113be1
fixed error in orphan file cleanup sql statement.
2012-12-04 16:19:01 +10:30
Jeremy Lakeman
bd83c192bb
Use consistent length constant
2012-12-04 16:18:51 +10:30
gardners
de7ff09930
fixed bug where disabling Rhizome over MDP server also disabled
...
client functionality.
2012-12-04 16:10:17 +10:30
gardners
fc0c134cbf
added speed indication on completion of rhizome transfer.
...
split files table into files and fileblobs to avoid pathological
delays when updating datavalid flag in files table (sqlite copies
the whole table row, including possibly large blob).
2012-12-04 16:03:56 +10:30
Jeremy Lakeman
10ce16e1f3
Fix reading port number
2012-12-04 15:53:32 +10:30
Jeremy Lakeman
abd804dd0c
Remove packetformats again
2012-12-04 15:09:01 +10:30
Jeremy Lakeman
5c7eb4a594
Add unicast probe packets
...
Probe directory service instead of assuming that it is always reachable
Fix directory service and routing tests
2012-12-04 14:47:57 +10:30
Andrew Bettison
caa209fc1d
Integrate new config into servald
...
Not passing any tests yet, but compiles and links and simple uses do not
SEGV.
2012-12-04 14:12:28 +10:30