Commit Graph

3573 Commits

Author SHA1 Message Date
gardners
89e72e35e9 Progress towards building NaCl in with DNA as a total shared library.
Fixed big problem with building of NaCl include files.
Some issues remain, working on those now.
2011-10-18 19:39:01 +10:30
gardners
f55a6525a2 Added hooks and code to build and link to NaCl static library
(static is always the safer option for crypto libraries to avoid
nasty run-time suprises)
2011-10-17 08:11:05 +10:30
gardners
6ad98c6128 added nacl public domain source tar to avoid need to download
during compilation (in case someone wants to build off line, or
in a cross-compiler without internet access)
2011-10-16 22:34:25 +10:30
gardners
fff5c5ddae Added code to build NaCl in with Serval DNA when doing a JNI build. 2011-10-16 22:11:43 +10:30
gardners
60e391ecd5 fixing an out-by-one error in ACTION_GET packet handling. 2011-10-06 09:27:04 +10:30
gardners
d5d2bd16b3 added further debug output to chase down corrupt packet errors. 2011-10-06 09:16:47 +10:30
gardners
5566dddad1 Added some extra debugging for stray HLR record creation. 2011-10-06 09:06:20 +10:30
gardners
51f181b16f Added missing @ to end of SIP address when seeding HLR 2011-10-06 03:51:29 +10:30
gardners
28c8fcfbc9 Fixed nasty bug in createHlr() that was corrupting HLR file. 2011-10-03 13:28:07 +10:30
gardners
613d542061 you guessed it, more catching corrupt hlr dramas 2011-10-02 21:54:59 +10:30
gardners
d9163053d3 more corrupt hlr catches 2011-10-02 21:41:13 +10:30
gardners
80f5f5f834 another hlr.dat corruption catch 2011-10-02 21:32:01 +10:30
gardners
5778e9d016 further checks against corrupt hlr 2011-10-02 21:18:16 +10:30
gardners
d90b921188 Added signal catcher to restart after crash 2011-10-02 20:28:08 +10:30
gardners
95c5124f86 Improved tolerance to corrupt HLR files. 2011-10-01 21:00:05 +09:30
gardners
571f042734 Added overlay_advertise.c to Android.mk 2011-09-20 21:16:10 +09:30
gardners
abf626a5c5 Fixed return code of packetOkOverlay(). 2011-09-13 05:52:53 +09:30
gardners
d19e0b7e39 Added missing call to *_recalc_node() to *_record_link(). 2011-09-13 05:42:32 +09:30
gardners
87610c18f5 fixed compiler warning and removed WHOOP debug message. 2011-09-13 05:40:23 +09:30
gardners
2a2f8d752f reception and processing of advertised routes now works :)
Indeed the core of the overlay mesh is now in place and nodes
on simple meshes discover each other. Plenty of bugs are sure
to remain.
2011-09-13 05:37:24 +09:30
gardners
8aa57edee3 Added code to add node advertisements to interface tick packets.
Looks like it works.  No code to decode it yet.
2011-09-13 04:52:52 +09:30
gardners
552d0095f0 Moved route advertisment to separate file. 2011-09-13 03:35:26 +09:30
gardners
26f0b36fa1 Added framework for advertising node reachability. 2011-09-13 03:33:45 +09:30
gardners
f301929026 Rejigged node structure to include score and advertisment history
information that can be used to help us prioritise which nodes
get advertised when.
2011-09-13 03:19:54 +09:30
gardners
0cb65c4a87 Cleaned up other references to interface in overlay_node_observation.
Tidied up output format when reporting observed links.
2011-09-13 02:59:48 +09:30
gardners
0087d338f2 Got rid of duplicated and now redundant function for recording
reachability announcements.
2011-09-13 02:56:21 +09:30
gardners
dc99dd27fb Removed unneeded interface field from node_observation structure. 2011-09-13 02:54:03 +09:30
gardners
8d8f535b2f Fixed correction of scores based on age of last observation
for nodes.
2011-09-13 02:45:12 +09:30
gardners
4303cc60d5 Fixed some bugs with route ticking infrastructure.
Added call to tick each neighbour.
2011-09-13 01:14:09 +09:30
gardners
ec22b5df0d Added infrastructure to tick route tables by progressively touching
all neighbours and nodes over a bounded timespread so that route
ticking doesn't add excessive delay/jitter.
2011-09-13 01:02:58 +09:30
gardners
78f54f1151 Some little fixes and tweaks. 2011-09-13 00:13:38 +09:30
gardners
a91c5d29c3 added code to display overlay mesh route table (incomplete)
fixed bug with recording routes from packets with unresolvable addresses.
2011-09-12 23:49:55 +09:30
gardners
d7aa6bcc01 Self-announcement acks are now logged into node observations.
Untested.
2011-09-11 20:09:47 +09:30
gardners
c65bc0d764 Stub in place for processing selfannounce acks.
Some bug fixes with address expansion.
2011-09-11 17:21:09 +09:30
gardners
144f3ee4b1 Thinned out debug messages and fixed SID generation bug to make sure
that it always generates a valid SID, i.e., not beginning with 0.
2011-09-07 21:50:20 +09:30
gardners
78e3bfc4a3 Finally looks like selfacknowledgement acks get sent and can be
decoded.  Now to actually use them ...
2011-09-07 13:09:54 +09:30
gardners
b6ce25ab24 Believe I have found and stemmed the memory corruption bug, although
the trigger (poor packet header decoding/address extraction) remains.
2011-09-07 11:26:26 +09:30
gardners
b0680bd6e0 Now does send acks to self-announcements.
Considerable work towards supporting 1-byte abbreviations of
addresses. But now there seems to be a memory corruption.
2011-09-05 16:30:50 +09:30
gardners
74efa738be Now sends acks to self-announcements, but uses index-based-abbreviation
to save space, which we have not yet implemented.
2011-09-05 15:55:59 +09:30
gardners
e7a6ed2b44 ... and the other file for Kris' suggested fixes. 2011-09-05 15:05:09 +09:30
gardners
7947485705 Android JNI/NDK build bug fixes suggested by Kris. 2011-09-05 15:01:14 +09:30
gardners
7c4f07279b Harmonising edits so that it builds again. 2011-09-05 14:58:12 +09:30
gardners
b402aba22d More work towards getting selfannounce acks (and other packet types)
forwarding out.
2011-09-05 14:55:44 +09:30
gardners
8ed86bfd89 Some further thinking about the mesh routing algorithm in comments. 2011-09-05 13:30:17 +09:30
gardners
67e822f1ff Fixed timing out of queued frames. 2011-09-05 13:19:00 +09:30
gardners
27a454ef72 Initial implementation of frame enqueuing. Queues require maxLength to be initalised to set
congestion threshold.
2011-09-05 12:49:37 +09:30
gardners
c3e220e5c1 Now attempts to enqueue self-annoucement ack frame (but enqueue function
not implemented).
2011-09-05 12:37:46 +09:30
gardners
37c0955494 More little fixes, especially initialising of overlay_buffers in
overlay_payload structures.
2011-09-05 12:34:54 +09:30
gardners
cbb1939241 Fixed various compiler warnings.
Change overlay_frame payload to use an overlay_buffer structure for
consistency and ease of payload construction.
Added some sanity checking to peer score calculation.
Getting closer to being able to TX acks to selfannouncements.
Other little things to accomplish these.
2011-09-05 12:19:53 +09:30
gardners
b8dfa7becd Added aging of neighbour reachability scores. 2011-09-04 17:27:23 +09:30