Andrew Bettison
5985df751d
Overhaul debug flags
...
Replace debugflags_t and DEBUG_XXX bit masks with config schema "debug.xxx"
entries.
No more support for "debug.all".
2012-12-11 15:59:46 +10:30
Andrew Bettison
8425882ffc
Merge branch 'newconfig' into 'master'
...
Conflicts:
commandline.c
conf.h
dataformats.c
log.h
overlay_address.c
overlay_interface.c
packetformats.c
rhizome.c
serval.h
tests/directory_service
vomp_console.c
2012-12-07 14:09:55 +10:30
Jeremy Lakeman
abd804dd0c
Remove packetformats again
2012-12-04 15:09:01 +10:30
gardners
979ca36ba6
fixed byte order bug in read routines.
2012-11-30 21:07:57 +10:30
gardners
692817ffba
added functions for reading values from byte streams.
2012-11-30 21:02:43 +10:30
gardners
7a4e3d20f8
Actually send Rhizome over MDP request packets.
...
Actually call appropriate callback when receiving Rhizome over
MDP packets.
2012-11-30 14:17:05 +10:30
Andrew Bettison
1fbf7001d1
Move packet-related functions from dataformats.c to packetformats.c
...
So that dataformats.o can be linked into executables that don't have log.o.
2012-11-22 18:11:21 +10:30
Jeremy Lakeman
f93216f369
Remove dead code
2012-10-19 15:02:22 +10:30
Andrew Bettison
f37ec5af09
Reduce use of stderr in many places
...
serval_packetvisualise() is now replaced by DEBUG_packet_visualise() which uses
logging system not stderr (so now it will appear in Android log).
Replaced several fprintf(stderr,...) with DEBUGF(...).
Command line only prints a full help message on "help" command -- a command
parse failure simply informs the user about the "help" command.
2012-08-01 17:54:02 +09:30
Andrew Bettison
bb5d658779
Rewrite many fprintf(stderr,...) to DEBUGF(...)
2012-07-27 11:29:27 +09:30
Andrew Bettison
3b44bb6e58
More progress on dnahelper
2012-07-19 17:59:45 +09:30
Andrew Bettison
025ccad810
Replace DEBUG_DNAVARS with DEBUG_RHIZOME_RX
...
Delete some obsolete HLR code
Mark DEBUG_HLR as deprecated
2012-07-12 16:26:37 +09:30
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
Jeremy Lakeman
89566e4d3d
Refactor how functions are scheduled or file handes are watched
2012-07-02 13:19:54 +09:30
Andrew Bettison
c335310b45
Remove more obsolete and unused code
2012-06-25 15:40:35 +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
Andrew Bettison
881576212c
Fix all trivial compiler warnings
2012-05-10 18:08: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
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
0868e30caa
Fixed issues with recognition of valid packet formats.
2012-01-09 04:30:23 +10:30
gardners
abf626a5c5
Fixed return code of packetOkOverlay().
2011-09-13 05:52:53 +09:30
gardners
cbb1939241
Fixed various compiler warnings.
...
Change overlay_frame payload to use an overlay_buffer structure for
consistency and ease of payload construction.
Added some sanity checking to peer score calculation.
Getting closer to being able to TX acks to selfannouncements.
Other little things to accomplish these.
2011-09-05 12:19:53 +09:30
gardners
54cea0b91b
Preliminary work for Rollie to add in Curve25519 crypto layer.
2011-09-01 17:04:25 +09:30
gardners
32a5f03073
Various single-instance variable processing fixes for DNA.
...
Further work on overlay mesh routing.
2011-08-29 16:20:27 +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
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
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
Jeremy Lakeman
bfccb3816d
Allow clients to request variables for all records by passing empty did.
...
Always add DONE flag to the last packet sent.
2011-04-27 12:17:26 +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
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