Commit Graph

2574 Commits

Author SHA1 Message Date
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
gardners
ed9971e8c1 increase Rhizome over MDP debug output to track down inability of
MEs to do rhizome over mdp on ad-hoc wifi
2013-08-25 21:30:17 +09:30
gardners
06bb93c88b add extra debug option to trace MDP Rhizome transfer problems. 2013-08-25 21:16:33 +09:30
gardners
53c9a406e1 don't give up on an HTTP rhizome transfer on an empty read if
the error is EAGAIN.
2013-08-25 17:35:34 +09:30
gardners
0d85d60566 relocate point of action for debug.rhizome_nohttptx so that it
performs correctly, and can be genuinely used to test failover from
http to mdp.
this has been confirmed by running the resulting rhizomeprotocol test
before and after application of the fix for the regression that stopped
the failover from working in certain circumstances.
2013-08-25 16:53:26 +09:30
gardners
53ce40a053 fix http->mdp rhizome fetch failover regression. 2013-08-25 16:38:24 +09:30
gardners
9b09021605 add test for falling over to MDP when HTTP rhizome fetching fails. 2013-08-25 16:37:44 +09:30
Jeremy Lakeman
a03c70bb86 Restart rhizome sync process every hour 2013-08-22 15:50:59 +09:30
Jeremy Lakeman
643b21d6a7 Fetch file payloads if they are missing, even if we already have the manifest 2013-08-22 15:14:21 +09:30
Jeremy Lakeman
f9b828c3dd Remove payload if hash doesn't match when reading back 2013-08-21 15:45:18 +09:30
Jeremy Lakeman
1468d2deb0 Pre-emptively send small payloads via MDP 2013-08-21 09:21:40 +09:30
Jeremy Lakeman
5c374e9e6e Basic routing test with simulated serial modem interface 2013-08-19 16:59:10 +09:30
Jeremy Lakeman
852c8b235c Build fakeradio with other test binaries 2013-08-19 13:56:19 +09:30
Jeremy Lakeman
ec44a3c9b2 Fix string format warning 2013-08-19 13:54:19 +09:30
Jeremy Lakeman
979281c64a Build version object once to allow for concurrent jobs 2013-08-19 13:53:58 +09:30
gardners
776e8e4f00 greatly improved fakeradio.c to simulate an RFD900a radio.
Simulates +++ / ATO capture, as well as enabling and disabling
RSSI output with at&t=rssi and at&t commands.
Implements some data rate throttling to match real radio, but
untested.
2013-08-19 10:34:40 +09:30
Jeremy Lakeman
bf7d0d5b16 Cache rhizome read state when serving content via MDP 2013-08-16 14:57:28 +09:30
Jeremy Lakeman
771cb4151b Fetch journal range via HTTP 2013-08-15 17:00:43 +09:30
Jeremy Lakeman
bc8ff888e9 If frame sender is NULL, assume you mean our primary SID 2013-08-15 16:31:26 +09:30
Jeremy Lakeman
56cea7472a Fix leak on interface down 2013-08-15 16:31:26 +09:30
Jeremy Lakeman
0b40ef655c Log format warnings for strbuf_sprintf 2013-08-15 16:31:26 +09:30
Jeremy Lakeman
21132466f1 Serve a range of a file payload via HTTP 2013-08-15 16:31:26 +09:30
Jeremy Lakeman
e322114850 Only transfer new journal content via MDP 2013-08-15 14:36:56 +09:30
Jeremy Lakeman
1051c11941 Improve comments on overlay_frame members 2013-08-15 10:15:08 +09:30