Jeremy Lakeman
851144ea0a
Refactor keyring identity iteration
2014-10-31 15:19:59 +10:30
Jeremy Lakeman
7e403af715
Tidy up indenting
2014-10-31 15:19:59 +10:30
Tobias Wooldridge
e79e74feb9
Exposes a list of configured identities through the REST API at /keyring/identities.json
2014-10-31 15:19:59 +10:30
gardners
ba4cd5e7b4
initialise length field in netmask_addr
2014-10-31 15:18:22 +10:30
gardners
45cffb4b2b
fix missing netmask argument for openwrt compilation.
2014-10-31 15:10:03 +10:30
gardners
6dca9fe6bf
ensure netmask is set when initialising an interface.
2014-10-31 15:01:22 +10:30
Jeremy Lakeman
3b9075344f
Allow write to return less bytes than we asked for, or zero
2014-10-31 13:45:46 +10:30
Jeremy Lakeman
3a1828ec2a
Don't force the caller to initialise the address buffer length
2014-10-31 13:45:46 +10:30
gardners
6536953703
add debug output to diagnose interface selection based on
...
received address of packet.
2014-10-31 12:26:58 +10:30
Jeremy Lakeman
a92b3ff29d
Fix compilation warning
2014-10-30 13:37:12 +10:30
Jeremy Lakeman
1848493468
New messages bump the conversation to the top
2014-10-27 11:08:02 +10:30
Jeremy Lakeman
bcd9575b54
Fix minor compilation issues on CentOS.
...
- ensure size_t is defined when compiling xprintf.h
- declare overlay_route_record as a union field in overlay_route_record to avoid alignment issues
- set the result of fwrite and fputs
- support slightly older git version
2014-10-20 12:35:21 +10:30
Jeremy Lakeman
fd0b7eda59
Pass PIE flags for compiling on Android L
2014-10-13 14:14:28 +10:30
Jeremy Lakeman
98ffa90b72
Log the source of monitor errors
2014-10-03 11:16:41 +09:30
Jeremy Lakeman
b33b0e7b54
Stop an existing dna helper on config reload
2014-10-02 10:49:20 +09:30
Jeremy Lakeman
e0557be6e9
Send ANSWERED message even if we never see RINGING
2014-10-01 15:53:19 +09:30
Jeremy Lakeman
cfa2b0e4cd
Fix codec and local extension parsing
2014-10-01 15:53:19 +09:30
Jeremy Lakeman
91d3f78f8e
Revert slack ping delivery in routing tests
2014-10-01 15:53:18 +09:30
gardners
2296196f7b
Add config option to select packet radio type.
2014-10-01 15:52:14 +09:30
gardners
db5daa20ee
fix OSX build errors.
2014-10-01 15:52:14 +09:30
Jeremy Lakeman
4440cf3af0
Allow for different routes per packet destination
2014-09-23 14:54:22 +09:30
Jeremy Lakeman
c7e397cadf
Trace network paths that are supposed to exist
2014-09-23 14:54:22 +09:30
Jeremy Lakeman
8667060ae0
Add Java API rebind for mdp sockets
2014-09-16 14:41:59 +09:30
Jeremy Lakeman
68bd515241
Content type might be null if the connection is terminated
2014-09-16 11:23:31 +09:30
Jeremy Lakeman
7474e8afea
Fix mdp support and Java API for binding to all keys in the keyring
2014-09-16 11:22:26 +09:30
Jeremy Lakeman
ff6b15748d
Add keyring list command that also outputs tags
2014-09-15 15:59:01 +09:30
Jeremy Lakeman
12c02255a1
Allow Java mdp protocols to specify the port to listen on
2014-09-15 14:39:26 +09:30
Jeremy Lakeman
2c72875508
Ensure sql lock failures are returned.
2014-09-12 15:24:23 +09:30
Jeremy Lakeman
dac67c7059
Small fixes while testing directory services
2014-09-12 15:24:23 +09:30
Jeremy Lakeman
d0ae11d419
Flush stdout on android
2014-09-12 15:24:23 +09:30
Andrew Bettison
e05d70b1a5
Fix wild assertion in HTTP server
...
In the _reserve() function, an assertion compared pointers which it assumed
both pointed within the heap, or in fact within the same buffer. However, if
one pointer pointed into the stack, then the assertion would incorrectly fail
if the stack were located below the heap in address space. That never happens
in a normal Linux process, but _can_ happen in a thread, since thread stacks
may be allocated on the heap.
Solution was to re-order the steps in which _reserve() overwrites the buffer,
making the assertion irrelevant.
2014-09-11 16:11:23 +09:30
Andrew Bettison
2aa3b85440
Fix un/signed comparison warning (error)
2014-09-11 16:10:49 +09:30
Tobias Wooldridge
866631c525
Fixes compile fatal error with section(command) on OS X, ifdef'd so fix doesn't break Ubuntu. Licensed under the BSD license. All rights/copyright granted to Serval Project Inc.
2014-09-08 14:17:03 +09:30
Jeremy Lakeman
6aa6aa69eb
Immediately register unlocked identities
2014-09-08 11:25:35 +09:30
Jeremy Lakeman
83949f6585
Never call at_exit functions from android dalvik vm
2014-09-08 11:24:19 +09:30
Jeremy Lakeman
097f72f04f
Respond to directory publish requests with success / failure
2014-09-01 12:05:08 +09:30
Jeremy Lakeman
97e7de03cd
Fix include order
2014-09-01 11:55:50 +09:30
Jeremy Lakeman
a37db8e958
Move most console commands to other files
2014-08-25 16:03:30 +09:30
Jeremy Lakeman
9896b6680a
Display git version when running within a submodule
2014-08-25 13:51:30 +09:30
Jeremy Lakeman
23f2401d46
Sort commands when displaying usage
2014-08-25 13:35:27 +09:30
Jeremy Lakeman
22a81ad7ed
Add missing header file
2014-08-25 13:30:36 +09:30
Jeremy Lakeman
2ec63b371a
Build the array of console commands by using linkage tricks
2014-08-22 10:36:52 +09:30
Andrew Bettison
7e1fbe8c76
Refactor to fix some OS-X compile warnings
...
Fixes two minor bugs that escaped notice until now
2014-08-14 17:39:44 +09:30
Andrew Bettison
ccece93309
Refactor "conf_schema.h" to fix compile warnings
...
In STRUCT() and ARRAY() declarations, change the optional "validator"
arg from taking a bare function name to enclose the function name in
VALIDATOR(function)
2014-08-14 16:40:30 +09:30
Jeremy Lakeman
d2015a44b9
Fix documentation of monitor state for vomp calls
2014-08-04 17:04:11 +09:30
Jeremy Lakeman
31cf3a67b5
Allow lcal http servers to perform cross site scripting of restful APIs
2014-07-28 12:54:57 +09:30
Andrew Bettison
d436705e64
Fix conflict on UNUSED() macro from OpenJDK 7
...
The OpenJDK 7 recently introduced the UNUSED() macro in their jni_md.h
header file, which is included from <jni.h>. This causes a
compile-error if "constants.h", which defines our own UNUSED() macro, is
included as well as <jni.h>.
The OpenJDK UNUSED() macro is unsuitable for our own use, because it
prefixes the unused identifier with "UNUSED_" whereas we depend on the
parameter name remaining unchanged.
I have reported this as a Request for Enhancement with Oracle Java,
asking them to remove the UNUSED() macro, since it is not used by any
JNI or Java extension header files. Review ID: JI-9013689.
In the meantime, constants.h now undefines UNUSED before defining it, so
including <jni.h> before "constants.h" will avoid a compile error.
2014-07-23 11:55:55 +09:30
Jeremy Lakeman
5a38d2eb0c
Add message timestamp to Java API
2014-07-21 16:13:17 +09:30
Jeremy Lakeman
6c08c8d4a4
Fix cast from Object to primitive types
2014-07-18 14:21:34 +09:30
Jeremy Lakeman
435ffecfa8
Add message timestamps to restful meshms
2014-07-18 14:11:57 +09:30