gardners
a2c3ffde6b
make sure import path exists, use WHY() macros for all output
...
to help debugging on android.
2012-05-22 10:01:17 +09:30
gardners
99bbbb0b05
make sure import path exists.
2012-05-22 10:00:26 +09:30
gardners
082b517fc9
improved debugging of interface connections.
2012-05-22 10:00:06 +09:30
gardners
e3a61f7614
improved WHY() macros to not show build path in messages.
2012-05-22 09:54:10 +09:30
gardners
62b400fe23
fixed "id peers" so that stale nodes disappear.
2012-05-22 06:36:32 +09:30
gardners
904663ef6c
bandaid for hung servald processes.
...
(real fix being worked on).
2012-05-21 22:47:17 +09:30
gardners
f562a6361d
completed working around strbuf_* bugs so that rhizome works again.
2012-05-21 22:45:08 +09:30
gardners
3164a76b1e
fixed manifest structure leak when failing to write a manifest.
2012-05-21 22:41:13 +09:30
gardners
322806a150
force correct construction of filenames for manifests and data files
...
(strbuf_* not working for these right now).
2012-05-21 22:31:35 +09:30
gardners
f96ba5be18
added various debugging, including revealing problem forming
...
file names for rhizome bundles being imported.
2012-05-21 22:19:47 +09:30
gardners
740a64ed51
"servald stop" now checks monitor interface, and can kill the PID
...
even if there is no PID file, and the server process is stuck.
Now to find out how the process gets stuck to begin with ...
2012-05-21 20:57:31 +09:30
gardners
165ac03c7a
added use of server_probe() to "servald start" command.
...
Tries to kill existing server if present, and will abort if
there is an existing instance.
Old pid code not cleaned out.
2012-05-21 20:54:17 +09:30
gardners
e44294ea66
implemented server_probe(int *pid) that used monitor interface
...
to probe server status. Also returns PID if running (Linux only).
2012-05-21 20:45:07 +09:30
gardners
6f09128d9c
fixed identity creation bug which was allowing first nybl of SID == 0.
2012-05-21 16:41:46 +09:30
Daniel O'Connor
e5153db2e2
Merge branch 'master' of github.com:servalproject/serval-dna
2012-05-21 16:18:38 +09:30
Daniel O'Connor
9d07cccf8e
Hide display of MDP socket name behind DEBUG_IO.
2012-05-21 16:18:09 +09:30
Andrew Bettison
ce0ca8801f
Implement "rhizome list" sender/recipient filtering
...
With tests in tests/dna_rhizome that actually revealed a bug
2012-05-21 14:42:53 +09:30
Andrew Bettison
da98535191
Add tests for rhizome MeshMS manifest operations
2012-05-21 14:42:53 +09:30
Andrew Bettison
f4293e8ab3
Add "rhizome hash file" command
...
Also fixed a file descriptor leak in rhizome_hash_file() -- missing fclose()
2012-05-21 14:42:53 +09:30
Jeremy Lakeman
05a430bc3a
Fix case of new peer message for consistency
2012-05-21 14:14:24 +09:30
Jeremy Lakeman
9adaf0bd8f
Only repeat an audio payload once
2012-05-21 14:14:24 +09:30
Jeremy Lakeman
b91ff06a9f
Reduce log spam while in call
2012-05-21 14:14:24 +09:30
gardners
1349c045b2
fixed a null pointer dereference.
2012-05-21 14:09:53 +09:30
Daniel O'Connor
dab549a22d
Add clean target.
2012-05-21 13:53:34 +09:30
Daniel O'Connor
4178aeace1
Check OVERLAY_ADDRESS_CACHE_SIZE is >0 directly to shut clang up.
2012-05-21 13:18:54 +09:30
gardners
66bc67fc76
changed space to : in newpeer message for consistency.
2012-05-21 13:06:42 +09:30
gardners
91e0b3ac27
add monitor commands to actually express interest in new peers.
2012-05-21 13:04:54 +09:30
gardners
c32268a922
android build fix.
2012-05-21 12:59:14 +09:30
gardners
c18eb2152c
fixed bug in MONITOR_PEERS
2012-05-21 12:55:25 +09:30
gardners
27daf02f81
added peer announcment to monitor interface.
2012-05-21 12:47:54 +09:30
gardners
3ea6d4f324
monitor interface announces new peers.
2012-05-21 12:47:53 +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
c5e490924f
Check for linux/ioctl.h before including it.
...
This fixes the build on OSX although it won't actually work.
2012-05-21 12:21:57 +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
Daniel O'Connor
7cb980ab5c
Don't discard return code from overlay_mdp_client_init. IMO this should be assert(mdp_client_socket != -1) though.
2012-05-21 11:09:45 +09:30
Andrew Bettison
c2de68449b
Make rhizome_add_manifest() stricter for MeshMS
...
If author not given, use 'sender' as author
Ensure that author and 'sender' field are identical
2012-05-21 10:37:24 +09:30
Andrew Bettison
ddd17db1c4
Make "rhizome add file" work for MeshMS
2012-05-21 00:09:14 +09:30
Andrew Bettison
b739bfd572
Add catv() function
2012-05-21 00:08:31 +09:30
Andrew Bettison
e6575cb369
Introduce macro constants for Rhizome service names
...
Use "MeshMS1" instead of "MeshMS"... version 2 won't be far away
2012-05-20 16:07:22 +09:30
Andrew Bettison
189ecee4b9
Clean up over-use of WHY() in overlay_mdp.c
2012-05-20 16:06:32 +09:30
Andrew Bettison
41583c1011
Fix bug in "rhizome add file" command
...
Was not opening keyring file properly
2012-05-20 15:25:19 +09:30
Andrew Bettison
990db1d275
Refactor Android.mk to remove duplication
2012-05-20 14:05:04 +09:30
Andrew Bettison
4d6c48a68f
Overhaul test scripts: use "servald" instead of "dna"
2012-05-20 13:48:02 +09:30
Andrew Bettison
d90508b2ba
Fix bugs in rhizome_add_manifest()
...
Tests for service types were inverted
Fail with error if BK field cannot be added
2012-05-20 13:46:38 +09:30
Andrew Bettison
55405fb081
Fix old command line bug in main()
...
Was calling new command-line parser when first option starts with '-'
2012-05-20 13:45:12 +09:30
Andrew Bettison
8baf861552
Replace WHY() calls with DEBUG() where appropriate
2012-05-20 13:44:33 +09:30
Andrew Bettison
7fbe25946b
Improve test framework
...
assertGrep() dumps file contents to log on failure
2012-05-20 13:14:15 +09:30
Andrew Bettison
345b2c1c4c
Fix SEGV bug using new strbuf operations
2012-05-20 13:02:41 +09:30
Andrew Bettison
4b5e179841
Start support for MeshMS manifests
2012-05-19 14:09:50 +09:30