The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
Go to file
2017-05-09 14:26:23 +09:30
Debian/etc Improve Debian init.d script and default file 2013-01-24 13:24:11 +10:30
doc Add "keyring remove" command 2016-11-07 13:07:49 +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 Return Invalid bundle status if rhizome manifest not found during import 2017-05-09 14:26:23 +09:30
m4 Rename configure.in to configure.ac 2016-10-13 16:05:58 +10:30
openwrt/packages/serval-dna Modify OpenWRT Makefile for development 2014-03-03 15:21:53 +10:30
sqlite-amalgamation-3140200 Always include sys/mman.h for android builds 2017-04-10 15:01:12 +09:30
tests Add newsince request for incoming activity 2017-04-19 14:46:37 +09: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 Compile Java during make, not during tests 2016-11-14 11:28:08 +10:30
android.c Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
Android.mk Add SERVAL_ENABLE_DEBUG macro 2016-11-14 11:40:22 +10:30
base64.c Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
base64.h Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
build-libsodium.sh Improve build-libsodium.sh 2016-10-13 17:00:17 +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 Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10:30
cli.h Fix broken Batphone build 2016-10-19 09:52:07 +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 Add 'api.restful.authorization' config option 2016-11-07 11:38:20 +10:30
conf_schema.h Add 'api.restful.authorization' config option 2016-11-07 11:38:20 +10:30
conf.c Tidy up handling of http server socket addresses & log spam 2016-10-25 16:04:41 +10:30
conf.h Add SERVAL_ENABLE_DEBUG macro 2016-11-14 11:40:22 +10:30
config.guess Update config.guess and config.sub scripts 2016-01-18 11:53:52 +10:30
config.h.in Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
config.sub Update config.guess and config.sub scripts 2016-01-18 11:53:52 +10:30
configure.ac Compile Java during make, not during tests 2016-11-14 11:28:08 +10: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 Fix an intermittent server test failure 2016-09-06 12:33:29 +09: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 Send a meshmb message via restful api 2016-10-26 13:08:13 +10:30
dataformats.h Add identity_t type & rename signing key api to identity. 2016-08-16 12:22:13 +09:30
debug.h Fix the DEBUG_cli_parsed() macro 2016-09-06 11:18:59 +09:30
directory_client.c Add global keyring assertions 2016-11-14 11:28:08 +10:30
directory_service.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
dna_helper.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
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 Overhaul Makefile.in 2016-10-13 16:23:09 +10:30
fdqueue.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10: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 Send a meshmb message via restful api 2016-10-26 13:08:13 +10:30
http_server.c Don't assert if a query parameter is empty 2017-03-22 13:04:58 +10:30
http_server.h Don't overflow the stack if logging config causes more logging due to using memory diagnostics 2016-10-31 15:23:06 +10:30
httpd.c Add 'api.restful.authorization' config option 2016-11-07 11:38:20 +10:30
httpd.h Add newsince request for incoming activity 2017-04-19 14:46:37 +09:30
install-sh Artefacts created by libtoolize -c -i 2012-09-12 15:21:50 +09:30
INSTALL.md Update INSTALL.md to describe built artifacts 2016-10-19 09:47:48 +10: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 Clean up some more warnings 2016-11-21 10:34:12 +10:30
keyring_cli.c Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
keyring_restful.c Add "keyring remove" command 2016-11-07 13:07:49 +10:30
keyring.c Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
keyring.h Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
lang.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10: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 Avoid recompiling java class if they have not changed 2017-02-14 14:56:40 +10:30
mdp_client.c Fix compiler warnings when building with android ndk 13b 2016-11-07 10:38:23 +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 Add Java api for meshmb restful activity 2017-04-19 14:46:37 +09:30
meshmb_restful.c Delay meshmb flush until http resume 2017-04-19 14:46:37 +09:30
meshmb.c Add Java api for meshmb restful activity 2017-04-19 14:46:37 +09:30
meshmb.h Add Java api for meshmb restful activity 2017-04-19 14:46:37 +09:30
meshms_cli.c cli interface for reading threaded feed activity 2017-04-19 14:46:37 +09:30
meshms_restful.c Make sure all restful newsince responses can be sorted by the front end 2016-10-31 10:56:10 +10:30
meshms.c Abbreviate the bundle id in feed ack's 2017-04-19 14:46:37 +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 Add Java api for meshmb restful activity 2017-04-19 14:46:37 +09:30
message_ply.h Abbreviate the bundle id in feed ack's 2017-04-19 14:46:37 +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 Fix compiler warnings when building with android ndk 13b 2016-11-07 10:38:23 +10: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 Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
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 Remove route structures from memory when all links are down 2017-05-02 14:46:08 +09: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 Use offsetof macro for all AF_UNIX address length calculations 2017-04-26 15:52:33 +09:30
overlay_interface.h Remove overlay_interface_find_name 2016-04-27 13:10:31 +09:30
overlay_link.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_mdp_dnalookup.c Add global keyring assertions 2016-11-14 11:28:08 +10:30
overlay_mdp_echo.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_mdp_keymaprequest.c Add global keyring assertions 2016-11-14 11:28:08 +10:30
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 Cause rhizome add to poke the daemon and trigger all bundle add notifications 2017-03-06 16:12:55 +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 Track call stats of mdp port handlers 2017-02-28 14:32:08 +10: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 Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
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 Update copyright messages in documentation 2016-09-21 18:31:31 +09:30
rhizome_bundle.c Add global keyring assertions 2016-11-14 11:28:08 +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 Add newsince request for incoming activity 2017-04-19 14:46:37 +09:30
rhizome_direct_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_direct_http.c Return payload busy if write fails to flush, treat as an error in most cases 2017-02-28 13:13:09 +10:30
rhizome_direct.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_fetch.c Refactor rhizome storage methods to return database busy status, and pause rhizome sync 2017-03-06 16:12:55 +10:30
rhizome_http.c Switch to feature-driven linking 2016-10-19 09:33:01 +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 Add sender & recipient filters to rhizome restful api 2017-05-08 11:38:20 +09:30
rhizome_store.c Ack incoming feeds for threading 2017-04-19 14:46:36 +09:30
rhizome_sync_keys.c One more fix for transfers with DB locking 2017-03-07 10:07:42 +10:30
rhizome_sync.c Cause rhizome add to poke the daemon and trigger all bundle add notifications 2017-03-06 16:12:55 +10: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 Return Invalid bundle status if rhizome manifest not found during import 2017-05-09 14:26:23 +09:30
rhizome.h Ack incoming feeds for threading 2017-04-19 14:46:36 +09: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 Remove route structures from memory when all links are down 2017-05-02 14:46:08 +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 Overhaul Makefile and header files 2014-05-26 15:36:26 +09:30
serval_types.h Add MeshMB cli commands to follow and ignore feeds 2017-04-19 14:46:36 +09:30
serval.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10: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 Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
server.c Fallback to file rename if linking fails 2017-05-03 12:00:23 +09:30
server.h Cause rhizome add to poke the daemon and trigger all bundle add notifications 2017-03-06 16:12:55 +10: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 Use offsetof macro for all AF_UNIX address length calculations 2017-04-26 15:52:33 +09:30
simulator.h Create new AF_UNIX based network simulator 2014-05-23 10:47:22 +09:30
socket.c Use offsetof macro for all AF_UNIX address length calculations 2017-04-26 15:52:33 +09:30
socket.h Tidy up handling of http server socket addresses & log spam 2016-10-25 16:04:41 +10:30
sourcefiles.mk Add MeshMB cli commands to follow and ignore feeds 2017-04-19 14:46:36 +09:30
str.c Clean up some more warnings 2016-11-21 10:34:12 +10:30
str.h Clean up some more warnings 2016-11-21 10:34:12 +10:30
strbuf_helpers.c Fix compiler warnings when building with android ndk 13b 2016-11-07 10:38:23 +10:30
strbuf_helpers.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +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 Keep syncing when a peer has nothing, and all existing bundles are replaced before transfer 2016-05-23 15:38:40 +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 Compile Java during make, not during tests 2016-11-14 11:28:08 +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 Fix a failing keyringrestful test 2016-09-21 12:16:50 +09:30
testframework.sh Improve test framework 2016-10-13 16:01:22 +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
uuid.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
uuid.h Rename uuid_t --> serval_uuid_t 2014-02-17 13:26:03 +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 Use libsodium for retrieving random bytes 2016-05-09 10:32:04 +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 2016

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 GNU C source code for the servald executable, a test framework and test scripts written in Bash, some technical documentation, and various support files for installation and configuration on various platforms.

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 Flinders University
CC-BY-4.0 This document is available under the Creative Commons Attribution 4.0 International licence.