Andrew Bettison
78a8aaca16
Code improvements while debugging 'dnaprotocol' tests
...
Use ssize_t and size_t where required by system calls
More stringent checking of errors from system calls
Log the offset when writing to dummy interface file
Clean up many WHY/INFO/DEBUG statements
Convert many fprintf(stderr,...) to DEBUGF()
2012-07-03 15:36:51 +09:30
Andrew Bettison
8020ea3b74
Merge branch 'eventscheduler' into master
...
Conflicts:
commandline.c
monitor.c
overlay.c
overlay_interface.c
overlay_packetformats.c
rhizome_fetch.c
rhizome_http.c
rhizome_packetformats.c
serval.h
server.c
testdefs.sh
testframework.sh
tests/dnaprotocol
tests/server
2012-07-03 10:26:22 +09:30
Jeremy Lakeman
89566e4d3d
Refactor how functions are scheduled or file handes are watched
2012-07-02 13:19:54 +09:30
Andrew Bettison
4516628c14
Replace fprintf(stderr,...) with DEBUGF
2012-07-02 12:52:21 +09:30
Andrew Bettison
c335310b45
Remove more obsolete and unused code
2012-06-25 15:40:35 +09:30
Andrew Bettison
67e2e98867
Expunge old DNA protocol code (cleans up warnings)
2012-06-25 15:37:11 +09:30
Andrew Bettison
0ec3feaa29
Expunge setReason()
...
Replace with WHY() or WHYF() everywhere
Improve logMessage() to handle file/line/function printing internally
Mainly so that log messages from manifest alloc/free in rhizome_bundle.c
can make it into the Android log
2012-05-24 17:11:55 +09:30
Daniel O'Connor
990a8f3057
Add support for srtuct ucred on BSD.
...
This requires building with _GNU_SOURCE to get access to struct ucred on Linux. Previously the test failed on every platform except glibc <2.8 or so.
Building with _GNU_SOURCE causes TRUE to be defined so we can't use this as a variable anymore, and MIN/MAX so don't define our own.
2012-05-21 12:22:50 +09:30
Daniel O'Connor
5cc908e28b
Missed a timeout -> dnatimeout rename.
2012-05-21 12:21:19 +09:30
Daniel O'Connor
354258c395
Rename timeout to dnatimeout as it conflicts with ncurses (which is dumb but we can't change ncurses)
2012-05-21 12:20:05 +09:30
Andrew Bettison
7087afc404
Refactor main() into main.c
...
Now dna.c only contains code for the old command line
2012-05-15 11:09:21 +09:30
Andrew Bettison
d11258cefc
Overhaul debug flags
...
Config debug flags are now represented as individual items, eg:
servald config set debug.verbose yes
servald config set debug.rhizome yes
instead of aggregated, eg:
servald config set debug verbose,rhizome <-- no longer works
Added a debug flag "debug.all" that can be set and cleared, over which
individual flag sets/clears take priority.
Slimmed down dna.c by moving some globals and functions to the files where they
are used.
Default command line (help message) is now the new style, not the deprecated
style.
2012-05-14 18:37:32 +09:30
gardners
e41da4322e
added note to explain why packetSetSid() has no prototype (deprecated)
2012-04-25 14:35:44 +09:30
gardners
283b29af6b
Improved packet tx and rx debugging and made it more logical.
2012-04-14 06:38:11 +09:30
gardners
099e7ab118
Fixed searching for DIDs with wildcard with keyring.
...
General improvements to handling identities from keyrings.
Fixed placing of DONE flag for each identity that a query
produces results as.
Various other fixes.
2012-04-13 10:23:59 +09:30
gardners
5ac83f9ca1
Replaced use of HLR with keyring for phone number lookups and
...
other functions. Not yet tested.
2012-04-13 09:25:03 +09: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
Jeremy Lakeman
172bdb61ed
Add DNA name variable
2012-03-06 11:21:10 +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
5cc6079c0f
Move from recvfrom() to recvmsg() so that we can get packet TTLs on
...
reception. Other changes associated with overlay mesh.
2012-02-05 16:15:19 +10:30
gardners
800f8d41eb
Revamped debug/verbosity control to use flags for functions of interest
...
instead of general verbosity ramp.
2012-01-10 15:56:40 +10:30
gardners
f0d5cd172e
Fixed responding to legacy requests from overlay mode.
2012-01-09 04:19:52 +10:30
gardners
ab3813f127
Added new -m command line option to show multiple responses.
2011-12-04 17:48:51 +10:30
gardners
0bae6992c0
Fixed bug with blank recvaddr fields when getting replies.
...
(there is still some ugly strangeness in the passing around of
recvaddr structures for no apparent reason.)
2011-12-02 09:59:47 +10:30
gardners
1c9f7dff12
Reinforced null termination of string when appending IP to @ in
...
resolution.
2011-12-02 05:45:07 +10:30
gardners
54cea0b91b
Preliminary work for Rollie to add in Curve25519 crypto layer.
2011-09-01 17:04:25 +09:30
gardners
4396570745
Fixed DNA simple server and client modes to still work with overlay code in place.
2011-08-15 15:54:11 +02:00
gardners
262346a182
Fixed one (of possibly many) bugs introduced into simple server mode by the new overlay mode code.
2011-08-15 13:54:05 +02:00
gardners
cf778e1efd
Various further work on overlay mesh.
...
Now resolves some kinds of abbreviated address, and queues up
the need to remind peers of abbreviation schemes it does not support.
2011-08-15 12:51:00 +02:00
gardners
c8229c8517
More work towards handling overlay or DNA packets.
...
handling of sender address and sockets to use is still a big fat mess
and likely to be broken.
2011-08-12 21:34:38 +02:00
gardners
7e30d62b79
Cleaned up various compiler warnings. Added packet parser framework for
...
handling overlay frames.
2011-08-12 21:05:11 +02:00
Jeremy Lakeman
67eec6c3ff
Send broadcasts based on network addresses
2011-07-04 11:20:46 +09:30
gardners
09ca959fae
Assorted unknown changes. Updated Makefile.in etc to properly build serval.c for building asterisk module.
2011-06-15 13:52:30 +09:30
gardners
5a7381bd2a
Fixes for OSX compilation, preparation for adding overlay mesh network.
2011-04-27 21:18:09 +09:30
Jeremy Lakeman
a2bcb56e1f
Minor bug fixes, mostly todo with uninitialised variables.
2011-03-31 00:09:42 +10:30
Jeremy Lakeman
59a0a4a2a0
Build a win32 console exe with VS2008 express
2011-03-30 22:17:11 +10:30
gardners
3168789261
DNA now appends IP to location records on receipt, instead of keeping
...
them in the HLR. This allows IP address of phones to change without
invalidating HLR. Does introduce issues for verification of records.
Will deal with that in due course.
2011-03-30 15:07:31 +10:30
gardners
f537141b13
Preparatory work for Thomas to implement sending/receiving SMS over the mesh.
2011-03-22 17:03:14 +10:30
gardners
af2ec8dc51
Added -A option to ask for the address of a peer.
...
Compiled in to use batmand.peers by default without needing -l.
Added peerAddress() function to get address of a peer programatically.
2011-03-22 16:31:02 +10:30
gardners
601ca12499
Added support for batmand.peers file for reliable peer querying.
...
Re-ported for asterisk module.
2011-03-21 13:08:35 +10:30
paul.gardner.stephen
f225465dfc
Initial check in
...
git-svn-id: http://serval-dna.googlecode.com/svn/trunk/trunk/dna@2 6d01b88e-114a-4e5d-930d-818638e25ad7
2010-07-13 12:15:46 +00:00