Andrew Bettison
d177512746
Add test for server start with --keyring-pin option
2013-09-09 14:47:02 +09:30
Jeremy Lakeman
d1234cb0f9
Use consistent integer types and formats
2013-09-09 12:09:40 +09:30
Andrew Bettison
f0a74e6cf2
Merge "keyring load" command and other keyring improvements into 'development'
2013-09-07 04:22:55 +09:30
Andrew Bettison
18e2916cec
Add more keyring load tests, fix duplicate identity bugs
2013-09-07 04:03:28 +09:30
Andrew Bettison
befb658958
All keyring commands now close (free) the keyring
2013-09-05 16:34:52 +09:30
Andrew Bettison
8a300c2520
Get new keyring dump command and test working
2013-09-05 16:34:01 +09:30
Andrew Bettison
4b0550afd1
Fix new keyring load test
2013-09-05 09:19:45 +09:30
Andrew Bettison
55efc73b7e
Improve test framework: assertGrep --fixed-strings option
2013-09-05 09:19:14 +09:30
Andrew Bettison
f95e41374b
Implement keyring load command, not working yet
...
Write new keyring test, fails with ERROR because assertGrep -F option is
not supported.
2013-09-04 23:47:17 +09:30
Andrew Bettison
08c02e0e20
More progress towards keyring load command
2013-09-03 17:31:10 +09:30
Andrew Bettison
34bbfb9b30
Add strn_fromhex(), improve hexvalue()
...
Implement fromhex() and fromhexstr() using strn_fromhex()
2013-09-03 17:29:41 +09:30
Andrew Bettison
9d1c3e0cba
Fix test case doc comment
2013-09-03 17:05:50 +09:30
Andrew Bettison
425aa1005c
Start work on "keyring load" command
2013-09-02 17:33:52 +09:30
Andrew Bettison
080ccd957a
Replace str_fromprint() with strn_fromprint()
2013-09-02 17:31:13 +09:30
Jeremy Lakeman
3be2ed615d
Resurrect packet visualisation
2013-09-02 14:55:02 +09:30
Jeremy Lakeman
8d0e056f81
Count number of BARs we have seen
2013-08-30 17:38:29 +09:30
Jeremy Lakeman
8935db4184
Only ack soon if we have been asked to
2013-08-30 17:38:29 +09:30
Jeremy Lakeman
e3b616421f
Remember outgoing links
2013-08-30 17:38:29 +09:30
Jeremy Lakeman
6ecfc952ed
Schedule ack packets in response to neighbour broadcasts
2013-08-30 17:38:29 +09:30
Jeremy Lakeman
abdd3e12c9
Prevent crash if dumping buffer contents
2013-08-30 17:38:29 +09:30
Andrew Bettison
572d7c2b5d
Add tests for new keyring environment vars
2013-08-30 11:20:19 +09:30
Andrew Bettison
aa20fd1a9b
Improve keyring environment variables
...
Rename to SERVALD_...
Interpret SERVALD_KEYRING_PATH relative to instance dir unless absolute.
Explicitly unset them in setup_servald() test defs function
2013-08-30 11:20:19 +09:30
Andrew Bettison
3164172c08
Work around broken Vim syntax highlighting
2013-08-30 11:20:19 +09:30
Andrew Bettison
3b1ae5cbb0
Env vars SERVAL_KEYRING_PATH and SERVAL_KEYRING_READONLY
...
To support release signing operations without having to copy the release
keyring from its USB stick (into an instance directory), and reducing
the risk of corrupting the release keyring file while using it in-place.
2013-08-30 11:20:19 +09:30
Andrew Bettison
7d30b3cce7
Pass command-line args to server() function
...
So that the daemon can open the keyring file with --keyring-pin and --entry-pin
options.
Also remove some unused code.
2013-08-30 11:20:19 +09:30
Jeremy Lakeman
842915f70c
Fix, using wrong loop variable in interface detection
2013-08-29 17:22:59 +09:30
Jeremy Lakeman
f06c203488
Send successful, in-order ACK's based on link RTT
2013-08-29 16:51:50 +09:30
Jeremy Lakeman
bf4269e98e
Adjust retransmission delay based on measured RTT
2013-08-29 15:28:20 +09:30
Jeremy Lakeman
95831a51aa
Don't schedule another poll if the interface is down
2013-08-28 17:06:42 +09:30
Jeremy Lakeman
7a4b1c3f19
Don't destroy the interface destination when bringing it down
2013-08-28 16:48:55 +09:30
Jeremy Lakeman
d2a88b8b2d
Bring the interface down if sending broadcast packets fails for any reason
2013-08-28 16:25:05 +09:30
Jeremy Lakeman
b916363b40
Treat empty filehash the same as NULL
2013-08-28 16:15:28 +09:30
Jeremy Lakeman
8accabfcac
Always store payloads with a temporary id
2013-08-27 16:15:51 +09:30
Jeremy Lakeman
8fea1523b1
More consistent use of sleep_ms
2013-08-27 15:14:17 +09:30
Jeremy Lakeman
e98592a7c1
Don't update the database author if we already know it
2013-08-27 15:11:56 +09:30
Jeremy Lakeman
acaedd644c
Use buffered reading for meshms ply records
2013-08-27 15:10:17 +09:30
Jeremy Lakeman
44ab51e2ab
Don't clean the database for every command line operation by default
2013-08-27 13:44:05 +09:30
Jeremy Lakeman
ceb7f9d4c9
Fail writing content if it has already been closed
2013-08-26 17:43:06 +09:30
Andrew Bettison
1b26917f58
Fix bug in handling errno from lseek()
2013-08-26 17:39:07 +09:30
Jeremy Lakeman
9c49abd431
Store journal appends to sql blobs in one burst
2013-08-26 15:37:19 +09:30
Jeremy Lakeman
42f139215d
Log warning if meshms ply failed to open
2013-08-26 14:00:02 +09:30
Romain Vimont (®om)
f5fa988fcf
Make overlay_mdp_client_socket_path local
...
Unlink mdp sockets by asking the OS what the bound name was.
2013-08-26 11:55:11 +09:30
Romain Vimont (®om)
4f89a69365
overlay_mdp_bind and overlay_mdp_getmyaddr should be visible in MDP API
2013-08-26 11:55:11 +09:30
Romain Vimont (®om)
2c6a14dd56
Delete all socket files on servald start
...
If serval does not close properly, socket files are kept in
/data/data/org.servalproject/var/serval-node. Therefore, we need to clean up
when servald starts.
2013-08-26 11:55:11 +09:30
Jeremy Lakeman
f2e7391672
Fix format warnings on 64bit machines
2013-08-26 11:54:46 +09:30
gardners
65cc17b7e1
add bidVersion reporting to rhizome_tx debug.
2013-08-25 22:32:13 +09:30
gardners
76f90f6004
add simple test to make sure byte order manipulation routines work.
2013-08-25 22:30:06 +09:30
gardners
b18a78f6c6
fix byte order for version field in MDP rhizome blocks (used
...
native instead of consistent byte ordering).
2013-08-25 22:08:40 +09:30
gardners
39785313f3
fix rhizome/mdp debugging for when slot is NULL.
2013-08-25 21:57:41 +09:30
gardners
24f4b789f3
add some more rhizome/mdp debugging.
2013-08-25 21:49:31 +09:30