Jeremy Lakeman
65831e31d4
Report the state of each network interface in routing table
2016-10-20 08:48:35 -04:00
Jeremy Lakeman
ecb79d818f
Refactor storage of binary values to enable reuse
2016-09-13 15:25:39 +09:30
Jeremy Lakeman
83b6ecb453
Roll an in memory identity when the keyring is empty
2016-08-02 11:01:32 +09:30
Jeremy Lakeman
6b7aa800e4
Start syncing rhizome based on manifest hashes
2016-05-09 11:10:50 +09:30
Jeremy Lakeman
edc1658cfd
Rework detection of rhizome add from cli to trigger bundle_add
2016-03-08 13:33:23 +10:30
Jeremy Lakeman
49ec0f61c4
Make sure sync still works for add via command line
2016-03-08 12:20:43 +10:30
Jeremy Lakeman
9c7d9c6100
Define trigger for changes to the neighbour list
2016-03-08 11:24:09 +10:30
Jeremy Lakeman
231ab257e4
Define internal port bindings with section linking tricks
2016-03-07 15:50:34 +10:30
Jeremy Lakeman
ab15369af5
Use trigger function to clear out sync bars
2016-03-07 14:33:50 +10:30
gardners
104c311b21
add missing OUT() to sync_send_response exit path if sqllite
...
statement preparation fails.
2015-12-26 15:44:22 +10:30
Andrew Bettison
52106b5026
Move DEBUGF() from "log.h" to "debug.h"
...
Include "debug.h" in lots of places (not all)
New macro IDEBUGF() for indirect debug flag, used in HTTP server
2015-07-13 18:24:04 +09:30
Andrew Bettison
7d9a5faa4e
Move if(config.debug.xxx) tests into DEBUGF()
...
Original DEBUG() and DEBUGF() macros renamed to _DEBUG() and _DEBUGF()
New DEBUG() and DEBUGF() macros, first argument is flagname
New DEBUGF2(foo, bar, ...) macro does if(config.debug.foo||config.debug.bar) test
Replace almost all config.debug.xxx references to IF_DEBUG(xxx)
2015-07-13 16:00:05 +09:30
Jeremy Lakeman
31dbfa4e58
Improve debug info for rhizome sync
2014-06-28 20:27:29 +09:30
Jeremy Lakeman
42a50e5c13
Reduce memory usage when there are no bars to fetch
2014-06-27 12:20:26 +09:30
Jeremy Lakeman
f63e7fee19
Introduce typedef for handling BAR values
2014-06-16 14:38:14 +09:30
Jeremy Lakeman
0b0e4cc8b4
Delay rhizome open database using an alarm, close on config change
2014-06-11 09:01:55 +09:30
Jeremy Lakeman
b6de3fcd34
Only send rhizome sync packets when we have neighbours
2014-05-30 15:03:22 +09:30
Jeremy Lakeman
9f39160c81
If we fail to fetch a bundle after 10 tries, skip it
2014-05-28 16:59:05 +09:30
Jeremy Lakeman
15cdcc4380
Squelch rhizome sync messages if rhizome is disabled
2014-05-21 10:27:56 +09:30
Jeremy Lakeman
0217b2b9db
Don't check the database again after tranfer completes
2014-03-05 10:04:33 -08:00
Jeremy Lakeman
b56f4c27d3
Replace internal usage of overlay_mdp_dispatch
2014-02-19 16:39:42 +10:30
Jeremy Lakeman
487df0408d
Refactor mdp packet processing to avoid using struct overlay_mdp_frame
2014-02-19 16:34:11 +10:30
Jeremy Lakeman
64fe96ebfa
Only drop BAR's from the sync if they are no longer interesting
2014-01-09 15:01:37 +10:30
Andrew Bettison
075f9c7c27
Use uint64_t for Rhizome manifest version
...
Instead of int64_t. Fixes some -Wsign-compare warnings.
Replace sqlite_exec_int64() with sqlite_exec_uint64().
Also store rowid as uint64_t, and use 0 not -1 to indicate
unset.
2013-12-11 11:11:34 +10:30
Andrew Bettison
9b64bb87e0
Uniform copyright notices
...
Added some missing copyright/license block comments
2013-12-04 17:15:36 +10:30
Jeremy Lakeman
0d5d878521
Refactor socket name and address length handling
2013-11-27 13:08:37 +10:30
Andrew Bettison
a9ccd38adc
Improve overlay buffer ob_xxx() primitives
...
All ob_append_xxx(b,...) functions return void
ob_makespace() returns 1 if successful, 0 if not
Add ob_overrun(b) predicate to check for overrun after any number of
appends
2013-11-26 15:33:54 +10:30
Andrew Bettison
fa21bec880
Rewrite HTTP server
2013-10-25 00:19:37 +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
0861dfdd94
Fix rhizome sync with larger numbers of existing bundles
2013-10-03 18:24:39 +02:00
Jeremy Lakeman
79bdb5f993
Add more html debugging for rhizome sync and fetch queues
2013-09-24 14:34:51 +09:30
Jeremy Lakeman
d3b1ccd20e
Reduce size of rhizome sync announce packets
2013-09-20 14:41:50 +09:30
Jeremy Lakeman
8d0e056f81
Count number of BARs we have seen
2013-08-30 17:38:29 +09:30
Jeremy Lakeman
a03c70bb86
Restart rhizome sync process every hour
2013-08-22 15:50:59 +09:30
Jeremy Lakeman
81afc42d8b
Major refactor to packet queuing and delivery in preparation for unicast link tracking.
...
Unicast tests broken
2013-08-09 09:37:08 +09:30
Jeremy Lakeman
111d014d43
Fix crash bug in rhizome sync
2013-08-05 11:45:44 +09:30
Jeremy Lakeman
15ad333195
Implicitly buffer all writes to database blobs
2013-07-18 17:04:12 +09:30
Jeremy Lakeman
3855ff35c4
Clean up string formatting for 64bit compilation
2013-07-15 09:59:24 +09:30
Jeremy Lakeman
a1ac7febe2
Add rhizome fetch status html page
2013-07-11 12:32:06 +09:30
Jeremy Lakeman
ac734b3161
Prevent trying to send packets that are too large
2013-07-11 12:20:12 +09:30
Jeremy Lakeman
986e664a3a
Only request more BARs when we know this wont trigger a useless packet storm
2013-07-03 10:52:16 +09:30
Jeremy Lakeman
becf199804
Make sure we can keep our fetch queues full by syncing more BARs
2013-07-02 13:34:23 +09:30
Jeremy Lakeman
d95b728752
Throttle BAR sync requests
2013-06-19 13:11:00 +09:30
Jeremy Lakeman
adbbed5275
Add new rhizome sync protocol
2013-06-19 12:05:57 +09:30