Added DEBUG_RHIZOMESYNC debug tag.

This commit is contained in:
gardners 2012-01-27 16:21:22 +10:30
parent 41daec5c96
commit 957262ed47
2 changed files with 3 additions and 1 deletions

3
dna.c
View File

@ -343,7 +343,7 @@ int main(int argc,char **argv)
manifest.
A different calling would be required to import an existing pre-signed
manifest */
return rhizome_bundle_import(optarg,
return rhizome_bundle_import(NULL,optarg,
NULL /* no groups - XXX should allow them */,
255 /* ttl - XXX should read from somewhere,
e.g., bar if being imported */,
@ -440,6 +440,7 @@ int main(int argc,char **argv)
if (strstr(optarg,"routing")) debug|=DEBUG_OVERLAYROUTING;
if (strstr(optarg,"security")) debug|=DEBUG_SECURITY;
if (strstr(optarg,"rhizome")) debug|=DEBUG_RHIZOME;
if (strstr(optarg,"filesync")) debug|=DEBUG_RHIZOMESYNC;
if (strstr(optarg,"monitorroutes")) debug|=DEBUG_OVERLAYROUTEMONITOR;
if (strstr(optarg,"queues")) debug|=DEBUG_QUEUES;
if (strstr(optarg,"broadcasts")) debug|=DEBUG_BROADCASTS;

View File

@ -898,6 +898,7 @@ int rhizome_server_poll();
#define DEBUG_OVERLAYROUTEMONITOR 262144
#define DEBUG_QUEUES 524288
#define DEBUG_BROADCASTS 1048576
#define DEBUG_RHIZOMESYNC 2097152
int serval_packetvisualise(FILE *f,char *message,unsigned char *packet,int plen);