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
gardners
dc2bfaff9d
Added Android executable wrapper for new command line parser.
2012-02-23 11:53:50 +10:30
gardners
979575f477
Added explanation when DNA restarts after receipt of a signal.
...
Also made sure we close interface file descriptors for overlay mesh
when we exec() to restart.
2012-02-17 12:16:43 +10:30
gardners
2620203015
Further preparatory work for new command line interface.
2012-02-17 01:06:08 +10:30
gardners
16d61dcaf3
Added macro definition to allow Serval code to know if it is being
...
built on Android or not, and set default instance path accordingly.
2012-02-17 01:03:59 +10:30
gardners
22d113d3db
Added missing GPL license declaration to file.
2012-02-17 00:42:37 +10:30
gardners
b4d139eaf3
Added #! line to script.
2012-02-17 00:42:11 +10:30
gardners
0fac7cd54b
Added new source files.
2012-02-17 00:41:42 +10:30
gardners
888d4e2bee
Remove Android.mk as it must be generated by nacl-jni-prep from
...
Android-without-NaCl.mk.
2012-02-17 00:40:43 +10:30
gardners
80a5507bd6
added call to memabuseInit().
2012-02-17 00:39:09 +10:30
gardners
f3a335b93c
Added prototypes for dna identity cache and improve memory abuse
...
detection prototype and macro.
2012-02-17 00:38:33 +10:30
gardners
edb44fb49d
added CREATE TABLE VERIFICATIONS to database schema.
2012-02-17 00:38:03 +10:30
gardners
fad92a7ffb
Continuing work on dna identity cache.
2012-02-17 00:37:09 +10:30
gardners
8424492b56
Removed Makefile from repository, as it gets built by configure.
2012-02-17 00:36:31 +10:30
gardners
70613baefd
Added new source files to Makefile template.
2012-02-17 00:36:02 +10:30
gardners
1918ed7965
Added new files for revamped command line interface (work in progress)
...
and dna identity cache (also work in progress)
2012-02-17 00:35:28 +10:30
gardners
3fed04e6cd
Added some extra checks for memory corruption (of course now that I
...
am looking, the problem is not happening).
2012-02-15 23:51:12 +10:30
gardners
ce2afbe2ab
Various fixes and addition of memory corruption framework (not yet active).
...
Rhizome now advertises all manifests, instead of accidently skipping some.
2012-02-15 23:38:23 +10:30
gardners
9a65f6c995
Fixed bug for deciding when to skip manifests
2012-02-14 10:00:39 +10:30
gardners
720ab89309
Debugging fiddles and fixed bug where only the first few manifests
...
would get advertised. But now there is a nasty crash bug somewhere.
2012-02-09 17:10:52 +10:30
gardners
9d3ab08f1e
added debug output to help track down the recvmsg() control message IDs
...
on linux (seem to be different than on BSD).
2012-02-05 17:53:51 +10:30
gardners
eee99a7893
Added missing files for rhizome.
2012-02-05 16:25:05 +10:30
gardners
355237cc6a
removed IP_RECVDSTADDR which doesn't seem to exist on Linux
...
(or at least on the Android environment)
2012-02-05 16:21:55 +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
8a24fb95b1
Converted manifest storage to using static set of manifest structures
...
and added manifest leak detection and some other memory corruption
protections.
2012-01-28 11:45:45 +10:30
gardners
423fb589b9
Bug fixes to rhizome manifest:version cache.
...
Lookup now really happens before database query.
2012-01-27 17:18:14 +10:30
gardners
45e8d68522
Added a manifest:version cache to avoid database lookups when being
...
offered manifests, thus saving cpu/energy.
2012-01-27 17:11:18 +10:30
gardners
c0676fd530
Fixed various bugs and memory leaks in rhizome file fetching.
...
Now successfully fetches manifests for files we already have in
the database, using the existing database copy of the file.
Also added filter to stop same file being fetched more than once at
same time..
2012-01-27 16:21:48 +10:30
gardners
957262ed47
Added DEBUG_RHIZOMESYNC debug tag.
2012-01-27 16:21:22 +10:30
gardners
41daec5c96
Fixed all zeroes manifestid problem.
...
Removed incorrectly pasted piece of code.
Various debug cleanups along the way.
2012-01-27 15:38:06 +10:30
gardners
cdf1c45da4
Rhizome fetching over http now receives files and imports them.
...
Still some wrinkles to work out.
2012-01-13 21:13:17 +10:30
gardners
f862ba0af6
Rhizome file transfer via http getting close
...
(send side needs to send file body)
2012-01-13 17:21:06 +10:30
gardners
7bcc852279
Fixed bug with non-blocking call to connect() for integrated http client.
...
Cleaned up some debugging stuff.
2012-01-12 17:02:22 +10:30
gardners
90729e20b6
fixed operation of rhizome web server in overlay server mode.
2012-01-12 16:50:25 +10:30
gardners
92968394e5
oops, missed a file on last commit.
2012-01-12 16:48:19 +10:30
gardners
bf9f8559f1
Various debug fiddles and conversion from select() to poll()
...
(although poll() still doesn't let us monitor ordinary files
which is silly.)
2012-01-12 16:47:24 +10:30
gardners
aeff9a4682
added file I forgot to add previously.
2012-01-12 14:08:54 +10:30
gardners
abb3021986
Added refactored rhizome code in separate files.
2012-01-12 14:08:24 +10:30
gardners
42b5c08321
Refactored rhizome.c into several smaller files.
...
Manifests are now gleaned from advertisements, and the ones that
are interesting are scheduled for importing into database.
(actual importing is not yet done -- requires fetching of file).
2012-01-12 14:05:05 +10:30
gardners
670f7c51c7
Reworked Rhizome advertisement frames to include whole manifests
...
inline where possible.
2012-01-11 14:27:40 +10:30
gardners
4d56809b63
Added debug selector for broadcasts.
2012-01-11 07:17:00 +10:30
gardners
0b73df19c8
Fixed bug with handling of OA_CODE_SELF intepretation.
2012-01-11 07:16:22 +10:30
gardners
f8eea651b5
Changed broadcast address to include a 64bit BPI to allow filtering
...
of duplicate broadcast announcements.
2012-01-10 21:56:07 +10:30
gardners
2a3721506b
More debugging output fixes and bug fixes for overlay operation.
...
Added proper check to suppress frames claiming to come from
ourselves ( necessary for squelching multi-hop broadcasts, although
we need an extra step there of having transaction ids on broadcast
frames so that we can flood smartly).
2012-01-10 20:27:36 +10:30
gardners
cb174a71f6
fixed queue management bugs.
2012-01-10 18:31:14 +10:30
gardners
44c0765981
Various debugging code cleanups.
...
Fixed some address resolution bugs (for when sender address is not
fully known).
There is still a bug in dequeuing packets though it seems.
2012-01-10 17:21:26 +10:30
gardners
891e3f2740
Added another debug/verbosity flag.
2012-01-10 16:29:50 +10:30