Commit Graph

448 Commits

Author SHA1 Message Date
gardners
3991c3eff4 MDP Server now begins to look at received packets, and send error
message back to client if required.
2012-03-19 16:23:05 +10:30
gardners
70497df7b5 More work on MDP. Removed some debug fluff.
Added framework for MDP ping, and some work towards MDP port binding
and sending packets with option to wait for reply.  MDP server
doesn't yet support port binding, and client doesn't yet support
reading replies.
2012-03-19 16:06:34 +10:30
gardners
302c9e70fb Added "set var value" command line option. 2012-03-19 14:26:14 +10:30
gardners
f43143bd0f Added code to remove stale unix domain socket files on startup and
shutdown.
2012-03-19 09:43:11 +10:30
gardners
9a957dbda7 Added initial code towards adding mdp ping command to new command
line framework.  Will use this to test MDP.
2012-03-19 09:27:06 +10:30
gardners
8711c957a4 Added overlay_mdp to android.mk 2012-03-19 09:26:52 +10:30
gardners
46599269d7 fixed socket type from TCP to UDP. 2012-03-17 22:31:48 +10:30
gardners
f384e6ea79 Further preparatory work for MDP. Next stop is actually checking
for inbound MDP connection requests on the unix domain sockets.
2012-03-17 13:02:09 +10:30
gardners
c59318cbab Added not implemented flags to some functions. 2012-03-17 13:01:43 +10:30
gardners
fc4f7f8f0b Updated nacl-gcc-prep call to run in nacl directory where the
script now lives.
2012-03-17 09:37:00 +10:30
gardners
4cc2890637 Added warning for handling of sid in a function that appears to violate
some previous assumptions in the code.  To be examined.
2012-03-17 09:28:49 +10:30
gardners
872c14df3f Added initial hook to handle MDP frames. 2012-03-17 09:28:49 +10:30
gardners
6a1f0a7033 Fixed return types of functions. 2012-03-17 09:28:49 +10:30
gardners
b8d66bf19b Improved instance path handling so that there is a simple function
to get the current instance path, regardless of how it was determined.
2012-03-17 09:28:49 +10:30
gardners
348c5ebcf3 Added Mesh Datagram Protocol (MDP) source file and initial work.
Added overlay_mdp.c to Makefile.in, and also trans_cache.c which
had not yet been added.
2012-03-17 09:28:48 +10:30
gardners
ac072c22d0 Removed Makefile (which is generated from Makefile.in) 2012-03-17 09:28:48 +10:30
gardners
081a9f496b Put back a pile of files needed for building on osx, and also required
for building on other platforms (i.e., configure framework, including
the .in files that are needed to build configure and Makefile, and the
sqlite code that is required for stand-alone building without external
dependencies, e.g., on non-android platforms, and looking ahead to
symbian where we will need a single self-contained binary as we cannot
assume the presence of an sqlite3 library as we can on android).
Any further changes to the build environment should not be committed
until it has been verified that building from a clean checkout on osx,
followed by configure and make actually works.
2012-03-15 10:57:38 +10:30
gardners
9fb94fc877 More work on dna identity cache. 2012-03-15 10:57:38 +10:30
gardners
5b7c3c5bb8 Improved signal handling so that pressing ^C results in a clean
shutdown.
2012-03-15 10:57:38 +10:30
gardners
c9478659db Added hint in startup message to show where rhizome database size limit
is set.
2012-03-15 10:57:37 +10:30
gardners
ec8a81c206 Rhizome now uses serval.conf to get rhizome database size limit. 2012-03-15 10:57:37 +10:30
gardners
2a2e520ef5 Various fixes and additions to enable "dna node start" and "dna node stop"
command line options to work.
2012-03-15 10:57:37 +10:30
Andrew Bettison
738b70b513 Test and fix ACTION_CREATEHLR idempotency code:
- refactor hlrSid() to not return pointer to static buffer, take 3rd arg instead
 - introduce SID_STRLEN macro constant, use it everywhere
 - reformat some code for readability
2012-03-14 12:00:54 +10:30
Andrew Bettison
cc4835e169 Fix minor bug in export HLR function:
- treat ascii 127 (del) as not printable
2012-03-14 12:00:54 +10:30
Andrew Bettison
6d8089031b ACTION_CREATEHLR does not create new SID if DID already created 2012-03-13 16:35:15 +10:30
Andrew Bettison
2f49c3f2f4 Remove unnecessary debug messages from transaction cache 2012-03-13 16:35:15 +10:30
Andrew Bettison
ceefd9b22b Fix SEGV bug in new transaction cache code 2012-03-13 16:35:15 +10:30
Andrew Bettison
8df5af7a93 Ignore Vim swap files 2012-03-13 16:35:15 +10:30
Andrew Bettison
f04a995c5c First cut at transaction caching to eliminate duplicate message deliveries 2012-03-13 16:35:14 +10:30
Jeremy Lakeman
2ef44022c8 Fix desktop make process 2012-03-13 13:18:56 +10:30
Jeremy Lakeman
172bdb61ed Add DNA name variable 2012-03-06 11:21:10 +10:30
Jeremy Lakeman
0905c6af4e Add missing make file 2012-02-27 14:13:05 +10:30
Daniel O'Connor
1b46c7ab28 Ressurect my fixed version of Android.mk. 2012-02-27 14:04:38 +10:30
Daniel O'Connor
6102dc0ccb - Move nacl-prepare-sources to nacl.
- Alter nacl-prepare-sources to do some of what nacl-jni-prep did.
- Commit nacl.h and sources.mk created by nacl-prepare-sources for
  nacl-20110221. This lets you build the Android version out of the
  box. The native version can still be built after 'do' script is
  run (necessary to build the libraries and create includes).
2012-02-27 12:45:50 +10:30
Daniel O'Connor
14a3560786 - Don't set LOCAL_PATH as the top level does it.
- Compile NACL as a separate static library.
2012-02-27 12:45:50 +10:30
Daniel O'Connor
40143364cc - Don't build serval.c - it's never used.
- Add a clean target.
2012-02-27 12:45:44 +10:30
Daniel O'Connor
a8411edf3f - Use system wide sqlite3 lib via pkg-config
- Remove nacl-gcc-prep, it's now in nacl
- Sort sources and have 1 per line.
- Add missing source files.
- Use naclinc.txt and nacllib.txt generated by nacl/nacl-gcc-prep
- Update ignore file now nacl files don't pollute this directory.
2012-02-27 12:41:48 +10:30
Daniel O'Connor
bf9710fd5a Unpacked nacl-20110221 after processing by nacl-prepare-sources.
This only affects build_android, if nacl-gcc-prep is run then build/`uname -s` will be created.
2012-02-27 12:40:14 +10:30
Daniel O'Connor
b053386b4f Scripts to process nacl source directory. 2012-02-27 12:40:14 +10:30
Jeremy Lakeman
6d3e720784 Fix compile error with ndk-build 2012-02-27 12:15:52 +10:30
Jeremy Lakeman
98c7593ef6 Fix asterisk config paths 2012-02-27 12:03:16 +10:30
gardners
1eb4c34015 Renamed mphlr.h to serval.h
(also some temporary debugging has been added in some places)
2012-02-23 12:45:42 +10:30
gardners
309bff0855 Added function prototype for new command line structure. 2012-02-23 12:39:31 +10:30
gardners
4f056c4088 Modified to call new command-line structure if first arg doesn't
start with a dash, and also warns when using the old structure.
2012-02-23 12:38:57 +10:30
gardners
be1d75dfbc fixed some bugs with new command line parsing structure.
Now can call use-case functions.
2012-02-23 12:38:19 +10:30
gardners
2494788390 Mark sockets close on exec so that they don't get stuck/lost when
we restart ourselves due to an uncaught signal.
2012-02-23 11:59:06 +10:30
gardners
6397fa70d9 overlay interface file descriptors now marked close-on-exec so that
if we get a sigabort or segmentation violation and restart ourselves,
we don't wind up with stuck/lost sockets.
2012-02-23 11:57:46 +10:30
gardners
18385fff82 added missing break statements to signal handler to show why serval
process is restarting itself.
2012-02-23 11:56:46 +10:30
gardners
878d9fab06 Added code to show status of serval process (pid file) among others.
Some reformatting.
2012-02-23 11:55:39 +10:30
gardners
40f59c7f2a Added build instructions for new serval binary that uses new
command line parser.
2012-02-23 11:54:16 +10:30