The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
Go to file
2018-03-06 15:16:55 +10:30
Debian/etc Improve Debian init.d script and default file 2013-01-24 13:24:11 +10:30
doc Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
fec-3.0.1 Fix -Wsign-compare warnings: use size_t or unsigned for byte counts 2013-12-10 16:52:53 +10:30
java-api Move test for uninitialised mdp port to throw in more cases 2018-01-03 18:01:13 +10:30
libsodium Merge libsodium 1.0.14 2017-09-27 14:52:05 +09:30
m4 Fix ./configure Java version detection 2017-10-09 09:19:39 +10:30
openwrt/packages/serval-dna Modify OpenWRT Makefile for development 2014-03-03 15:21:53 +10:30
sqlite-amalgamation-3140200 Add FALLTHROUGH macro to silence -Wimplicit-fallthrough in GCC7 2017-09-11 12:43:38 +09:30
tests Fix two broken rhizomerestful tests 2017-11-21 15:11:48 +10:30
utilities Fix Markdown formatting 2013-02-22 00:05:34 -08:00
win32 Allow clients to request variables for all records by passing empty did. 2011-04-27 12:17:26 +09:30
.dir-locals.el Add file to set emacs variables to match the prevailing style. 2012-07-29 13:52:46 +09:30
.gitignore Squashed 'libsodium/' changes from 7d5d9204e..18609cffa 2017-09-27 14:52:05 +09:30
android.c Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
Android.mk Compile without warnings with android ndk 15 beta 2 2017-06-06 15:14:33 +09:30
base64.c Add FALLTHROUGH macro to silence -Wimplicit-fallthrough in GCC7 2017-09-11 12:43:38 +09:30
base64.h Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
cc-by-4.0.png Add copyright notices and CC-BY license to README.md and INSTALL.md 2014-05-20 14:52:57 +09:30
CC-BY-4.0.md Add text of CC BY 4.0 license 2014-05-21 17:37:23 +09:30
check-in-out-return.c Uniform copyright notices 2013-12-04 17:15:36 +10:30
cli_stdio.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
cli_stdio.h Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10:30
cli.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
cli.h Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
commandline.c Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
commandline.h Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
conf_cli.c Tidy up handling of http server socket addresses & log spam 2016-10-25 16:04:41 +10:30
conf_om.c Improve config overflow message 2015-12-14 10:31:38 +10:30
conf_parse.c Improve config overflow message 2015-12-14 10:31:38 +10:30
conf_schema.c Detect Wifi and cabled ethernet on linux systems, allow matching by type in config 2017-11-07 16:53:19 +10:30
conf_schema.h Detect Wifi and cabled ethernet on linux systems, allow matching by type in config 2017-11-07 16:53:19 +10:30
conf.c Tidy up handling of http server socket addresses & log spam 2016-10-25 16:04:41 +10:30
conf.h Detect Wifi and cabled ethernet on linux systems, allow matching by type in config 2017-11-07 16:53:19 +10:30
config.guess Update config.guess and config.sub scripts 2016-01-18 11:53:52 +10:30
config.h.in Configure and build libsodium from subtree 2017-09-27 14:49:08 +09:30
config.sub Update config.guess and config.sub scripts 2016-01-18 11:53:52 +10:30
configure.ac Squashed 'libsodium/' changes from 7d5d9204e..18609cffa 2017-09-27 14:52:05 +09:30
console.c Don't continuously toggle fd blocking mode 2016-03-30 16:25:43 +10:30
console.h Overhaul Makefile and header files 2014-05-26 15:36:26 +09:30
constants.h Detect Wifi and cabled ethernet on linux systems, allow matching by type in config 2017-11-07 16:53:19 +10:30
context1.c Fix compiler warning 2013-11-21 16:49:44 +10:30
CONTRIBUTORS.md Add CONTRIBUTORS.md file, fix alternative links in README.md 2013-12-03 15:05:05 +10:30
COPYRIGHT.txt Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
crypto.c Generalise deterministic key generation 2016-11-21 11:09:27 +10:30
crypto.h Generalise deterministic key generation 2016-11-21 11:09:27 +10:30
dataformats.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
dataformats.h Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
debug.h Fix the DEBUG_cli_parsed() macro 2016-09-06 11:18:59 +09:30
directory_client.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
directory_service.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
dna_helper.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
echo_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
fakeradio.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
fdqueue.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
fdqueue.h Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
feature.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
fifo.h Uniform copyright notices 2013-12-04 17:15:36 +10:30
golay.c Refactor to fix some OS-X compile warnings 2014-08-14 17:39:44 +09:30
golay.h Uniform #ifdef __SERVAL_DNA__... for headers 2013-12-04 17:15:36 +10:30
GPL-2.0.txt Add full text of GPL version 2.0 2013-12-04 02:52:31 +10:30
headerfiles.mk Add SERVAL_ prefix to UUID symbols to avoid collisions on OS-X 2017-10-09 11:41:44 +10:30
http_server.c Always silently ignore incoming data once response has started 2018-01-08 12:24:42 +10:30
http_server.h Improve comments and variable names in http_server.cc 2017-10-20 17:29:46 +10:30
httpd.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
httpd.h Improve and document HTTP REST Rhizome import 2017-10-20 15:50:18 +10:30
install-sh Artefacts created by libtoolize -c -i 2012-09-12 15:21:50 +09:30
INSTALL.md Require Java version 1.6 or later 2017-09-27 14:49:13 +09:30
instance.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
instance.h Move JNI setInstancePath() into own source file 2016-10-19 16:26:00 +10:30
jni_commandline.c Clean up some more warnings 2016-11-21 10:34:12 +10:30
jni_common.c Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10:30
jni_common.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
jni_instance.c Move JNI setInstancePath() into own source file 2016-10-19 16:26:00 +10:30
jni_server.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
keyring_cli.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
keyring_restful.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
keyring.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
keyring.h Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
lang.h Add FALLTHROUGH macro to silence -Wimplicit-fallthrough in GCC7 2017-09-11 12:43:38 +09:30
LICENSE-DOCUMENTATION.md Add text of CC BY 4.0 license 2014-05-21 17:37:23 +09:30
limit.c Move rate limit code to separate file 2014-05-12 13:44:50 +09:30
limit.h Move rate limit code to separate file 2014-05-12 13:44:50 +09:30
log_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
log_context.c Add log_context 2015-06-29 15:39:19 +09:30
log_stderr.c Replace cf_on_config_change() with "config_change" trigger 2016-10-19 09:30:54 +10:30
log_util.c Add strbuf_local_buf() macro 2015-11-02 10:11:41 +10:30
log.c Don't overflow the stack if logging config causes more logging due to using memory diagnostics 2016-10-31 15:23:06 +10:30
log.h Replace cf_on_config_change() with "config_change" trigger 2016-10-19 09:30:54 +10:30
logMessage.c Overhaul Makefile and header files 2014-05-26 15:36:26 +09:30
lsif.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
ltmain.sh Artefacts created by libtoolize -c -i 2012-09-12 15:21:50 +09:30
macconfig Fixed broadcast address discovery to work on Mac. 2011-08-08 16:11:05 +09:30
main.c Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10:30
Makefile.dbg Move debug options to Makefile.dbg so we don't have to re-run configure. 2012-07-29 14:55:10 +09:30
Makefile.in Fix syntax error in Makefile.in 2017-11-10 11:31:25 +10:30
mdp_client.c Improve MDP request debug logging 2018-03-06 15:16:55 +10:30
mdp_client.h Cause rhizome add to poke the daemon and trigger all bundle add notifications 2017-03-06 16:12:55 +10:30
mdp_filter.c Add missing #include "str.h" 2016-09-21 18:47:49 +09:30
mem.c Add restful API's for follow and ignore 2017-04-19 14:46:36 +09:30
mem.h Add restful API's for follow and ignore 2017-04-19 14:46:36 +09:30
meshmb_cli.c Allow following a feed that isn't in rhizome yet, and override the displayed name 2017-06-20 12:17:57 +09:30
meshmb_restful.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
meshmb.c Add FALLTHROUGH macro to silence -Wimplicit-fallthrough in GCC7 2017-09-11 12:43:38 +09:30
meshmb.h Allow following a feed that isn't in rhizome yet, and override the displayed name 2017-06-20 12:17:57 +09:30
meshms_cli.c cli interface for reading threaded feed activity 2017-04-19 14:46:37 +09:30
meshms_restful.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
meshms.c Clean up a number of memory leaks, as revealed by clang's sanitiser 2017-09-11 14:09:27 +09:30
meshms.h Make sure all restful newsince responses can be sorted by the front end 2016-10-31 10:56:10 +10:30
meshpotato_build Assorted unknown changes. Updated Makefile.in etc to properly build serval.c for building asterisk module. 2011-06-15 13:52:30 +09:30
message_ply.c Don't fail to write a message ply, if the payload is already stored 2017-07-03 12:15:36 +09:30
message_ply.h Ack the senders ply and thread into activity feed 2017-05-10 11:01:02 +09:30
monitor-cli.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
monitor-client.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
monitor-client.h Uniform #ifdef __SERVAL_DNA__... for headers 2013-12-04 17:15:36 +10:30
monitor.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
mpbuild Added mesh potato build script. 2011-08-10 15:39:40 +02:00
msp_client.c Add API for msp from within the daemon 2016-05-09 11:10:50 +09:30
msp_client.h Add API for msp from within the daemon 2016-05-09 11:10:50 +09:30
msp_common.h Transfer bundles via msp, triggered by key sync 2016-05-09 11:10:50 +09:30
msp_proxy.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
msp_server.c Lower mdp qos priority of new rhizome sync, bias bundles with no reachable receiver 2016-05-10 13:34:38 +09:30
msp_server.h Lower mdp qos priority of new rhizome sync, bias bundles with no reachable receiver 2016-05-10 13:34:38 +09:30
net.c Absorb ENOTRECOVERABLE in read_nonblock() 2016-09-06 12:07:00 +09:30
net.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
network_cli.c Improve MDP request debug logging 2018-03-06 15:16:55 +10:30
nibble_tree.c Add MeshMB cli commands to follow and ignore feeds 2017-04-19 14:46:36 +09:30
nibble_tree.h Add MeshMB cli commands to follow and ignore feeds 2017-04-19 14:46:36 +09:30
numeric_str.c Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
numeric_str.h Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
os.c Use libsodium for retrieving random bytes 2016-05-09 10:32:04 +09:30
os.h Clean up some more warnings 2016-11-21 10:34:12 +10:30
overlay_address.c Allow PREVIOUS overlay address to refer to SIGNKEY 2017-11-22 17:38:17 +10:30
overlay_address.h Send route link messages with extra abbreviation bits 2017-05-01 10:06:24 +09:30
overlay_buffer.c Don't overflow the stack if logging config causes more logging due to using memory diagnostics 2016-10-31 15:23:06 +10:30
overlay_buffer.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_interface.c Log error reason if we fail to detect interface type from reading /sys/net 2017-11-20 15:05:36 +10:30
overlay_interface.h Detect Wifi and cabled ethernet on linux systems, allow matching by type in config 2017-11-07 16:53:19 +10:30
overlay_link.c Refactor dns lookups to reuse the code 2017-07-11 11:42:15 +09:30
overlay_mdp_dnalookup.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
overlay_mdp_echo.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_mdp_keymaprequest.c Send route change when we detect a peer has a combined key 2017-11-16 11:08:43 +01:00
overlay_mdp_rhizome.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_mdp_trace.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_mdp.c Detect Wifi and cabled ethernet on linux systems, allow matching by type in config 2017-11-07 16:53:19 +10:30
overlay_olsr.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_packet.h Tweak structure initialisation to avoid old gcc warnings 2017-06-28 13:34:38 +09:30
overlay_packetformats.c Send route link messages with extra abbreviation bits 2017-05-01 10:06:24 +09:30
overlay_packetradio.c Move if(config.debug.xxx) tests into DEBUGF() 2015-07-13 16:00:05 +09:30
overlay_payload.c Allow for different routes per packet destination 2014-09-23 14:54:22 +09:30
overlay_probe.c Fix compiler warnings when building with android ndk 13b 2016-11-07 10:38:23 +10:30
overlay_queue.c Don't attempt to calculate the next alarm if the interface just went down 2017-11-20 10:39:32 +10:30
overlay_stun.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_stunreq.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
performance_timing.c Move if(config.debug.xxx) tests into DEBUGF() 2015-07-13 16:00:05 +09:30
radio_link.c Move if(config.debug.xxx) tests into DEBUGF() 2015-07-13 16:00:05 +09:30
radio_link.h Uniform #ifdef __SERVAL_DNA__... for headers 2013-12-04 17:15:36 +10:30
README.md Spruce up MeshMS REST API tech doc a bit 2017-10-20 17:22:38 +10:30
rhizome_bundle.c Improve and document HTTP REST Rhizome import 2017-10-20 15:50:18 +10:30
rhizome_cli.c Add bundle author to feed metadata 2017-04-19 14:46:36 +09:30
rhizome_crypto.c Test and fix rhizome clean verify 2017-04-19 14:46:36 +09:30
rhizome_database.c Improve and document HTTP REST Rhizome import 2017-10-20 15:50:18 +10:30
rhizome_direct_cli.c Clean up a number of memory leaks, as revealed by clang's sanitiser 2017-09-11 14:09:27 +09:30
rhizome_direct_http.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
rhizome_direct.c Clean up a number of memory leaks, as revealed by clang's sanitiser 2017-09-11 14:09:27 +09:30
rhizome_fetch.c Return STATUS_OLD from is_interesting 2017-05-17 14:24:28 +09:30
rhizome_http.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
rhizome_packetformats.c Refactor rhizome storage methods to return database busy status, and pause rhizome sync 2017-03-06 16:12:55 +10:30
rhizome_restful.c Improve and document HTTP REST Rhizome import 2017-10-20 15:50:18 +10:30
rhizome_store.c Ensure space calculation is performed as a uint64_t (Fixes #125) 2017-09-06 13:01:58 +09:30
rhizome_sync_keys.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
rhizome_sync.c Return STATUS_OLD from is_interesting 2017-05-17 14:24:28 +09:30
rhizome_types.h Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
rhizome.c Add restful import API 2017-05-17 10:16:46 +09:30
rhizome.h Improve and document HTTP REST Rhizome import 2017-10-20 15:50:18 +10:30
rotbuf.c Fix bug in rotbuf_next_chunk() when rotation == 0 2013-05-15 16:46:39 +09:30
rotbuf.h Remove spurious rotbuf_log() declaration, fixes #75 2014-04-03 10:43:14 +10:30
route_link.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
route_link.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
section.h Rename "features.h" to "lang.h" 2016-10-19 09:30:18 +10:30
serval_packetvisualise.c Compile without warnings with android ndk 15 beta 2 2017-06-06 15:14:33 +09:30
serval_types.h Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
serval_uuid.c Fix rename of UUID symbol specifically for building with the Android NDK 2017-10-10 15:05:28 +10:30
serval_uuid.h Add SERVAL_ prefix to UUID symbols to avoid collisions on OS-X 2017-10-09 11:41:44 +10:30
serval.h Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
servald_features.c Move vomp console feature to test binary 2016-11-21 11:09:27 +10:30
servald_main.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
servalwrap.c Clean up some more warnings 2016-11-21 10:34:12 +10:30
server_httpd.c Set Content-Type in static file HTTP responses 2017-10-20 10:01:15 +10:30
server.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
server.h Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
sighandlers.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
sighandlers.h Overhaul Makefile and header files 2014-05-26 15:36:26 +09:30
simulator.c Clean up a number of memory leaks, as revealed by clang's sanitiser 2017-09-11 14:09:27 +09:30
simulator.h Create new AF_UNIX based network simulator 2014-05-23 10:47:22 +09:30
socket.c Fix warnings on android ndk 2017-08-29 13:19:35 +09:30
socket.h Refactor dns lookups to reuse the code 2017-07-11 11:42:15 +09:30
sourcefiles.mk Add SERVAL_ prefix to UUID symbols to avoid collisions on OS-X 2017-10-09 11:41:44 +10:30
str.c Add str_endswith() and strcase_endswith() 2017-10-20 09:48:19 +10:30
str.h Add str_endswith() and strcase_endswith() 2017-10-20 09:48:19 +10:30
strbuf_helpers.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
strbuf_helpers.h Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
strbuf.c Optimise strbuf_ncat() 2015-11-17 00:42:06 +10:30
strbuf.h Add MeshMB cli commands to follow and ignore feeds 2017-04-19 14:46:36 +09:30
strlcpy.c Fix strlcpy.c compile error on OS X 2016-11-09 19:03:45 +10:30
strlcpy.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
sync_keys.c Fix freeing peer state (Issue #121) 2017-05-10 11:23:13 +09:30
sync_keys.h Add missing #include "str.h" 2016-09-21 18:47:49 +09:30
test_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
test_features.c Move vomp console feature to test binary 2016-11-21 11:09:27 +10:30
testconfig.sh.in Trival test of dna JNI command line entry point 2012-04-23 18:25:26 +09:30
testdefs_java.sh Always include testconfig so java tests are run with all tests 2018-01-08 12:24:42 +10:30
testdefs_json.sh Improve JSON test defs to ensure setup_jq is called before jq 2016-02-15 18:41:54 +10:30
testdefs_meshms.sh Reduce redundant reading of message ply's 2016-08-23 14:28:13 +09:30
testdefs_rhizome.sh Remove file hash command 2016-08-16 12:22:13 +09:30
testdefs.sh Always include testconfig so java tests are run with all tests 2018-01-08 12:24:42 +10:30
testframework.sh Improve test framework 2017-12-06 16:36:42 +10:30
testnacl.c Swap from included nacl to host libsodium 2016-05-09 10:32:04 +09:30
tfw_createfile.c Move numeric conversions from "str.h" to "numeric_str.h" 2016-09-21 18:47:49 +09:30
timeit.c add context switching speed test to "test memory" command. 2013-10-22 13:12:10 -07:00
trigger.h Remove terminating semicolons from within macros 2015-11-02 10:11:41 +10:30
uri.c Clean up some more warnings 2016-11-21 10:34:12 +10:30
uri.h Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
version_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
version_servald.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
version_servald.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
version_string.sh Don't depend on .git folders or on error text strings 2014-12-12 11:01:34 +10:30
vomp_console.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
vomp.c Enable a more graceful shutdown of the server in most cases 2017-09-12 15:37:52 +09:30
whence.c Add alloca_sourceloc(), refactored from log.c 2015-06-29 15:39:19 +09:30
whence.h Add alloca_sourceloc(), refactored from log.c 2015-06-29 15:39:19 +09:30
xprintf.c Add XPRINT strbuf adapter 2013-03-25 12:02:48 +10:30
xprintf.h Clean up some more warnings 2016-11-21 10:34:12 +10:30

Serval DNA

Serval Project, September 2017

Serval DNA is the core component of the Serval Mesh app for Android and the Serval Mesh Extender long-range mesh networking device. It is a daemon process that performs all the central services of the Serval mesh network such as dynamic routing, encryption and authentication, file distribution, messaging, and voice telephony.

Any device with Wi-Fi connectivity that runs the Serval DNA daemon can participate in the Serval mesh network.

Download, build and test

  • INSTALL.md contains instructions for downloading, building and testing Serval DNA on Linux, Mac OS-X, and similar platforms

  • Notes for Developers contains useful information for developers of Serval DNA, which may also help resolve build issues

Configuration

Documentation

Bugs and issues

Bugs can be reported and inspected using the GitHub issue tracker.

What is in this repository?

This repository contains:

The servald executable is a multi-purpose program that can be invoked directly from the command line, run as a daemon process, or invoked via JNI from within a Java program. The servald executable is really many commands built into one; the command-line arguments select which command to run. Some commands are stand-alone utilities, some start and stop the servald daemon process, some communicate with the servald daemon as an MDP client, and others via a two-way pipe called the monitor interface.

The following protocols and services are implemented in servald:

  • The Distributed Numbering Architecture (DNA) is the key innovation that makes mesh telephony viable in the absence of any infrastructure, eg, in the aftermath of a natural disaster or in remote locations. DNA is a protocol carried over MDP (see below) that asks many devices at once if they will answer a phone number (DID). A device will respond with its own subscriber identity (SID) if its user has “claimed” that DID. This allows phone calls to be established over the mesh using conventional phone numbers.

  • The Serval Keyring is a flat file containing all the user identities on a single device. Each identity is a set of elliptic curve secret cryptographic keys that belong to a single “mesh subscriber”, indexed by the subscriber's 256-bit public key, called a SID. Each identity in the keyring is locked by its own user-chosen password (called a PIN in the code and documentation), using elliptic curve cryptography to protect locked entries from theft or tampering, and steganography to allow the user to plausibly deny the existence of locked identities.

  • The Mesh Datagram Protocol (MDP) is Serval's own layer 3 protocol designed for secure mesh networking. It is completely independent of Internet protocols such as IP and UDP, although for the time being it is implemented as an “overlay” network based on UDP/IP because that is the interface that Linux and other operating systems provide for sending data over Wi-Fi. However, MDP could easily be implemented directly over a layer 2 data link such as Wi-Fi or Ethernet MAC. MDP uses subscribers' public keys (SID) as source and destination addresses, has a 32-bit port number analogous to the 16-bit port number used in TCP/IP, and encrypts all packet contents by default, using the public key (SID) of the destination.

  • The Voice over Mesh Protocol (VoMP) is Serval's own call negotiation and two-way audio streaming protocol used to implement mesh voice calls. It fills the same role as SIP/RTS, the dominant protocol used for Voice over Internet Protocol, but VoMP is designed for the variable and unstable conditions of wireless mesh networks. VoMP's session state model and signalling can handle packet loss, mid-call re-routing and re-connection where SIP would fail. VoMP's audio streaming can encapsulate many codecs and even DTMF (dialpad button) signalling.

  • Rhizome is a content storage and distribution service implemented using SQLite and a content-exchange protocol based on MDP. It can be used to disseminate content like images, videos, documents, software upgrades, etc. Each piece of content in Rhizome is called a “bundle”, which has two parts: a manifest that describes the content, and the payload, which is the content itself. Each bundle has its own unique cryptographic identifier that allows any recipient to verify that it has not been tampered with. A bundle's payload may be encrypted by the author so that only the designated recipient can read it.

  • The MeshMS messaging service sends short text messages using Rhizome as its transport. Each message thread is stored and carried in a pair of journal bundles, one for each direction (ply).

  • Serval Infrastructure services may optionally be deployed on any devices in the mesh to expose external services to mesh subscribers and vice versa (eg, VoIP gateways, SMS satellite links, packetised web), and to overcome scalability limitations of a perfectly decentralised mesh (eg, central telephone directory). Serval Infrastructure is implemented as a daemon with its own executable called directory_service.

Serval DNA is free software produced by the Serval Project and many contributors. Its source code is licensed to the public under the GNU General Public License version 2. Its technical documentation is licensed to the public under the Creative Commons Attribution 4.0 International licence. All source code and technical documentation is freely available from the Serval Project's serval-dna Git repository on GitHub.

The copyright in most of the source code in Serval DNA is held by Serval Project Inc., a not-for-profit association incorporated in the state of South Australia in the Commonwealth of Australia for the purpose of developing the Serval mesh software. The COPYRIGHT file contains a full list of all those who hold copyright in portions of the Serval DNA source code.

The Serval Project will accept contributions for which copyright has been assigned to Serval Project Inc., or which are licensed to either Serval Project Inc. or to the public on terms that allow the Serval Project to freely redistribute and re-license the code under non-restrictive terms, for example, to release Serval DNA as part of a product distributed through the Apple app store.

Individual developers may assign copyright in their contributions by signing the Serval Project Developer Agreement - Individual, and organisations by signing the Serval Project Developer Agreement - Entity.


Copyright 2015 Serval Project Inc.
Copyright 2016-2017 Flinders University
CC-BY-4.0 This document is available under the Creative Commons Attribution 4.0 International licence.