The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
Go to file
Andrew Bettison d1203827e1 Move nibble_tree.c into client library
Needed by test_cli.c
2018-04-24 13:03:50 +09:30
Debian/etc Improve Debian init.d script and default file 2013-01-24 13:24:11 +10:30
doc Fix broken link in tech doc 2018-04-23 08:13:49 +09: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
ios Add iOS Framework Bundle build 2018-03-06 15:29:29 +10:30
java-api Add Route Java API 2018-04-05 18:12:59 +09:30
libsodium Merge libsodium 1.0.14 2017-09-27 14:52:05 +09:30
m4 Add Swift keyring client API with tests 2018-03-06 15:29:17 +10:30
openwrt/packages/serval-dna Modify OpenWRT Makefile for development 2014-03-03 15:21:53 +10:30
sqlite-amalgamation-3140200 Remove -Wimplicit-fallthrough #pragma from sqlite3.c (fixes #128) 2018-04-05 21:21:26 +09:30
swift-client-api Add Route Swift API 2018-04-09 14:43:37 +09:30
swift-daemon-api Add Swift daemon API, use in 'servaldswift' 2018-03-06 15:29:17 +10:30
tests Fix msp tests to use unused file descriptor 2018-04-24 12:53:56 +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 Add iOS Framework Bundle build 2018-03-06 15:29:29 +10:30
android.c Add 'cmd_cleanup' trigger 2016-11-14 11:28:03 +10:30
Android.mk Change Android.mk to only compile a single .a file 2018-04-03 16:41:10 +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 Add Swift daemon API, use in 'servaldswift' 2018-03-06 15:29:17 +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 Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
commandline.h Minor clean-ups 2018-04-04 12:22:26 +09:30
conf_cli.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Keep AF_UNIX and file-based interfaces up whenever config re-loads 2018-04-05 18:12:23 +09:30
conf_schema.h Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
conf.c Rewrite logging system 2018-03-06 15:16:56 +10:30
conf.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Remove -Wimplicit-fallthrough #pragma from sqlite3.c (fixes #128) 2018-04-05 21:21:26 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Update COPYRIGHT.txt 2018-03-06 15:29:29 +10:30
crypto.c Generalise deterministic key generation 2016-11-21 11:09:27 +10:30
crypto.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
dataformats.c Improve validation of keyring DID and Name (fixes #131) 2018-03-06 15:14:18 +10:30
dataformats.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
debug.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
directory_client.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
directory_service.c Use config.h instead of -DHAVE_FOO=1 2016-10-19 16:27:20 +10:30
dna_helper.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
echo_cli.c Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
fakeradio.c Rewrite logging system 2018-03-06 15:16:56 +10:30
fdqueue.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
fdqueue.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
feature.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
fifo.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
http_server.c Add 'Location' header to HTTP server 301 and 302 responses 2018-03-19 18:07:33 +10:30
http_server.h Add 'Location' header to HTTP server 301 and 302 responses 2018-03-19 18:07:33 +10:30
httpd.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
httpd.h Add Route REST API (fixes #96) 2018-03-29 15:31:03 +10:30
idebug.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
install-sh Artefacts created by libtoolize -c -i 2012-09-12 15:21:50 +09:30
INSTALL.md Add iOS Framework Bundle build 2018-03-06 15:29:29 +10:30
instance.c Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
instance.h Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
jni_commandline.c Link java api into shared library by specifying features 2018-04-03 16:41:10 +09: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_server.c Link java api into shared library by specifying features 2018-04-03 16:41:10 +09:30
keyring_cli.c Use enum for keyring key type codes 2018-03-29 12:20:56 +10:30
keyring_restful.c Add Route REST API (fixes #96) 2018-03-29 15:31:03 +10:30
keyring.c Possible race condition in command cleanup due to linking order, (Fixes #136) 2018-04-16 09:36:17 +09:30
keyring.h Use enum for keyring key type codes 2018-03-29 12:20:56 +10:30
lang.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
log_cli.c Rewrite logging system 2018-03-06 15:16:56 +10:30
log_context.c Add log_context 2015-06-29 15:39:19 +09:30
log_inline.c Rewrite logging system 2018-03-06 15:16:56 +10:30
log_output_android.c Remove dump_config from android specific code 2018-03-26 15:03:28 +10:30
log_output_console.c Rewrite logging system 2018-03-06 15:16:56 +10:30
log_output_delegate.c Don't allow a delegate log to be opened if it isn't used 2018-03-28 15:42:18 +10:30
log_output_delegate.h Add Swift daemon API, use in 'servaldswift' 2018-03-06 15:29:17 +10:30
log_output_file.c Rewrite logging system 2018-03-06 15:16:56 +10:30
log_output.h Rewrite logging system 2018-03-06 15:16:56 +10:30
log_prolog.h Rewrite logging system 2018-03-06 15:16:56 +10:30
log_stderr.c Replace cf_on_config_change() with "config_change" trigger 2016-10-19 09:30:54 +10:30
log_util.c Fix a bug in debug hexdumps 2018-03-09 16:56:36 +10:30
log.c Rewrite logging system 2018-03-06 15:16:56 +10:30
log.h Rewrite logging system 2018-03-06 15:16:56 +10:30
lsif.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Add Swift 3/4 'servaldswift' executable 2018-03-06 15:29:17 +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 pass exec_prefix to libsodium recursed make 2018-04-18 16:45:51 +09: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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
mdp_services.h Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +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 Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
meshmb.c Add nibble-tree iterator 2018-03-29 15:19:54 +10:30
meshmb.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
meshms_cli.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
meshms_restful.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
message_ply.h Ack the senders ply and thread into activity feed 2017-05-10 11:01:02 +09:30
module.modulemap Add Swift daemon API, use in 'servaldswift' 2018-03-06 15:29:17 +10:30
monitor-cli.c Rewrite logging system 2018-03-06 15:16:56 +10:30
monitor-client.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
monitor-client.h Uniform #ifdef __SERVAL_DNA__... for headers 2013-12-04 17:15:36 +10:30
monitor.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10: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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
nibble_tree.c Add missing include for bzero 2018-04-03 09:44:28 +09:30
nibble_tree.h Add nibble-tree iterator 2018-03-29 15:19:54 +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 Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
os.h Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
overlay_address.c Possible race condition in command cleanup due to linking order, (Fixes #136) 2018-04-16 09:36:17 +09:30
overlay_address.h Add Route REST API (fixes #96) 2018-03-29 15:31:03 +10:30
overlay_buffer.c Fix a bug in MDP_IDENTITY request handling 2018-03-09 16:56:36 +10:30
overlay_buffer.h Switch to feature-driven linking 2016-10-19 09:33:01 +10:30
overlay_interface.c Fix compilation and real interfaces on android 2018-04-10 10:52:44 +09:30
overlay_interface.h Keep AF_UNIX and file-based interfaces up whenever config re-loads 2018-04-05 18:12:23 +09:30
overlay_link.c Keep AF_UNIX and file-based interfaces up whenever config re-loads 2018-04-05 18:12:23 +09:30
overlay_mdp_dnalookup.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09: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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
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 Keep AF_UNIX and file-based interfaces up whenever config re-loads 2018-04-05 18:12:23 +09:30
overlay_olsr.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
overlay_packet.h Tweak structure initialisation to avoid old gcc warnings 2017-06-28 13:34:38 +09:30
overlay_packetformats.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
overlay_packetradio.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
overlay_payload.c Allow for different routes per packet destination 2014-09-23 14:54:22 +09:30
overlay_probe.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
overlay_queue.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
overlay_stun.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
overlay_stunreq.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
performance_timing.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
radio_link.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
radio_link.h Uniform #ifdef __SERVAL_DNA__... for headers 2013-12-04 17:15:36 +10:30
README.md Add iOS Framework Bundle build 2018-03-06 15:29:29 +10:30
rhizome_bundle.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
rhizome_cli.c Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
rhizome_crypto.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
rhizome_database.c Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09: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 Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
rhizome_direct.c Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
rhizome_fetch.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
rhizome_http.c Improve HTTP Content-Type handling 2017-10-20 09:55:21 +10:30
rhizome_packetformats.c Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
rhizome_restful.c Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
rhizome_store.c Improve Rhizome DB path configuration 2018-04-17 12:01:02 +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 Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
rhizome_types.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
rhizome.c Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
rhizome.h Improve Rhizome DB path configuration 2018-04-17 12:01:02 +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 Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
route_link.h Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
route_restful.c Add Route Java API 2018-04-05 18:12:59 +09: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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
serval_uuid.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
serval_uuid.h Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
serval.h Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
servald_features.c Minor clean-ups 2018-04-04 12:22:26 +09:30
servald_jni_features.c Link java api into shared library by specifying features 2018-04-03 16:41:10 +09:30
servald_main.c Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +09:30
servald_main.h Add Swift 3/4 'servaldswift' executable 2018-03-06 15:29:17 +10:30
servaldswift.swift Add Swift daemon API, use in 'servaldswift' 2018-03-06 15:29:17 +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 Use config to set and remember rhizome database location 2018-04-10 10:52:44 +09:30
server.h Reduce coupling with console, dna_helper, monitor & directory_client features 2018-04-03 14:32:06 +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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
simulator.h Create new AF_UNIX based network simulator 2014-05-23 10:47:22 +09:30
socket.c Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
socket.h Refactor dns lookups to reuse the code 2017-07-11 11:42:15 +09:30
sourcefiles.mk Move nibble_tree.c into client library 2018-04-24 13:03:50 +09:30
str.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
str.h Add str_endswith() and strcase_endswith() 2017-10-20 09:48:19 +10:30
strbuf_helpers.c remove C99-ism 2018-04-18 16:45:51 +09:30
strbuf_helpers.h Add strbuf_json_integer() 2018-03-29 15:19:54 +10:30
strbuf.c Optimise strbuf_ncat() 2015-11-17 00:42:06 +10:30
strbuf.h Fix compile error in strbuf_local_buf() with CFLAGS=-g 2018-03-06 15:16:55 +10: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 Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
test_cli.c Add nibble-tree iterator 2018-03-29 15:19:54 +10:30
test_features.c Link java api into shared library by specifying features 2018-04-03 16:41:10 +09:30
testconfig.sh.in Add Swift keyring client API with tests 2018-03-06 15:29:17 +10:30
testdefs_java.sh Fix the $JAVAC conditional in tests/all 2018-03-06 15:16:56 +10:30
testdefs_meshms.sh Reduce redundant reading of message ply's 2016-08-23 14:28:13 +09:30
testdefs_rest.sh Refactor routing and Swift test set-up 2018-04-09 09:22:36 +09:30
testdefs_rhizome.sh Improve Rhizome DB path configuration 2018-04-17 12:01:02 +09:30
testdefs_routing.sh Refactor routing and Swift test set-up 2018-04-09 09:22:36 +09:30
testdefs_swift.sh Refactor routing and Swift test set-up 2018-04-09 09:22:36 +09:30
testdefs.sh Refactor routing and Swift test set-up 2018-04-09 09:22:36 +09:30
testframework.sh Restore the ability for test verbose logging to write directly to the console 2018-04-23 13:35:31 +09:30
testnacl.c Swap from included nacl to host libsodium 2016-05-09 10:32:04 +09:30
tfw_createfile.c Fix tfw_createfile utility 2018-03-29 15:19:54 +10: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 Rewrite logging system 2018-03-06 15:16:56 +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 Rewrite logging system 2018-03-06 15:16:56 +10:30
vomp.c Fix header files for Xcode iOS build 2018-03-06 15:29:29 +10:30
whence.c Add alloca_sourceloc(), refactored from log.c 2015-06-29 15:39:19 +09:30
whence.h Rewrite logging system 2018-03-06 15:16:56 +10:30
xprintf.c Rewrite logging system 2018-03-06 15:16:56 +10:30
xprintf.h Rewrite logging system 2018-03-06 15:16:56 +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 or via the [Swift module][] from within a Swift 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.