The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
Go to file
2016-10-20 08:48:35 -04:00
Debian/etc Improve Debian init.d script and default file 2013-01-24 13:24:11 +10:30
doc Update INSTALL.md to describe built artifacts 2016-10-19 09:47:48 +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/org/servalproject Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
javatest/org/servalproject/test Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10: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 Upgrade to SQLite 3.14.2 2016-09-21 22:47:35 +09:30
tests Fix meshms restful newsince with empty conversation 2016-10-20 08:37:24 -04:00
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 Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
android.c Fix broken Batphone build 2016-10-19 09:52:07 +10:30
Android.mk Fix broken Android build 2016-10-20 13:28:12 +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 Fix broken Batphone build 2016-10-19 09:52:07 +10:30
commandline.h Fix broken Batphone build 2016-10-19 09:52:07 +10:30
conf_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +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 Format scaled integers using strbuf 2016-09-21 18:47:49 +09:30
conf_schema.h Fix Android server thread start bug 2016-10-20 13:29:01 +10:30
conf.c Replace cf_on_config_change() with "config_change" trigger 2016-10-19 09:30:54 +10:30
conf.h Replace cf_on_config_change() with "config_change" trigger 2016-10-19 09:30:54 +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 Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +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 Simplify BK handling using new signing key typedefs 2016-09-27 15:20:12 +09:30
crypto.h Simplify BK handling using new signing key typedefs 2016-09-27 15:20:12 +09:30
dataformats.c Un-inline a function in "rhizome_types.h" 2016-09-21 18:47:49 +09: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 Rework route print command to use newer mdp api, show live updates & deprecate monitor messages 2016-05-10 10:28:14 +09: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 Rename "features.h" to "lang.h" 2016-10-19 09:30:18 +10:30
http_server.c Add missing #include "str.h" 2016-09-21 18:47:49 +09:30
http_server.h Improve HTTP responses 2015-12-01 00:51:15 +10:30
httpd.c Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10:30
httpd.h Reduce redundant reading of message ply's 2016-08-23 14:28:13 +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 Fix JNI command-line exception return path 2016-10-20 13:28: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 Load config earlier in the JNI server entry point 2016-10-20 13:28:12 +10:30
keyring_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
keyring_restful.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
keyring.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
keyring.h Switch to feature-driven linking 2016-10-19 09:33:01 +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 Fix a non-deterministic server test case failure 2016-10-19 09:50:30 +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 broken Android build 2016-10-20 13:28:12 +10:30
mdp_client.c Add some MDP client DEBUG trace statements 2016-09-06 13:31:38 +09:30
mdp_client.h Rework route print command to use newer mdp api, show live updates & deprecate monitor messages 2016-05-10 10:28:14 +09:30
mdp_filter.c Add missing #include "str.h" 2016-09-21 18:47:49 +09:30
mem.c Move if(config.debug.xxx) tests into DEBUGF() 2015-07-13 16:00:05 +09:30
mem.h Rename "features.h" to "lang.h" 2016-10-19 09:30:18 +10:30
meshmb.c Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +10:30
meshms_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
meshms_restful.c Fix meshms restful newsince with empty conversation 2016-10-20 08:37:24 -04:00
meshms.c Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
meshms.h Reduce redundant reading of message ply's 2016-08-23 14:28:13 +09: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 Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
message_ply.h Allow for arbitrary extra manifest fields on broadcast messages 2016-08-24 16:33:39 +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 Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
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 Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10:30
nibble_tree.h Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +10: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 Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
overlay_address.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_address.h Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_buffer.c Add missing #include "str.h" 2016-09-21 18:47:49 +09:30
overlay_buffer.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_interface.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10: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 Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_mdp_echo.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_mdp_keymaprequest.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04: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 Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_olsr.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
overlay_packet.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_packetformats.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
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 Switch to feature-driven linking 2016-10-19 09:33:01 +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 Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
rhizome_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_crypto.c Wait for path establishment in network scan test 2016-09-27 15:51:23 +09:30
rhizome_database.c Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
rhizome_direct_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_direct_http.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_direct.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_fetch.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
rhizome_http.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_packetformats.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
rhizome_restful.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
rhizome_store.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
rhizome_sync_keys.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
rhizome_sync.c Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
rhizome_types.h Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
rhizome.c Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
rhizome.h Switch to feature-driven linking 2016-10-19 09:33:01 +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 Report the state of each network interface in routing table 2016-10-20 08:48:35 -04:00
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 Introduce new typedef for signing keys to expose their internal structure 2016-09-27 10:28:46 +09:30
serval.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
servald_features.c Fix broken Batphone build 2016-10-19 09:52:07 +10:30
servald_main.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
servalwrap.c Fix broken Android build 2016-10-20 13:28: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 Fix Android server thread start bug 2016-10-20 13:29:01 +10:30
server.h Refactor JNI out of CLI and server main loop 2016-10-13 16:23:18 +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 Replace cf_on_config_change() with "config_change" trigger 2016-10-19 09:30:54 +10:30
simulator.h Create new AF_UNIX based network simulator 2014-05-23 10:47:22 +09:30
socket.c Fix calculated size of struct sockaddr_un on OSX #104 2016-05-09 09:07:34 +09:30
socket.h Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
sourcefiles.mk Move JNI setInstancePath() into own source file 2016-10-19 16:26:00 +10:30
str.c Change signature of strn_fromprint() 2016-10-13 16:23:18 +10:30
str.h Change signature of strn_fromprint() 2016-10-13 16:23:18 +10:30
strbuf_helpers.c Avoid undefined behaviour as highlighted by clang 2016-01-27 16:27:47 +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 Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
strlcpy.c Reimplement strlcpy() using strncpy_nul() 2015-11-02 10:11:41 +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 Fix broken Batphone build 2016-10-19 09:52:07 +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 Switch to feature-driven linking 2016-10-19 09:33:01 +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 Updated some copyright messages and COPYRIGHT.txt 2016-10-13 16:23:18 +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 Rename "features.h" to "lang.h" 2016-10-19 09:30:18 +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.