From fee0a5b8684c14af293ac07f6cf4e8231e650f86 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 19 Sep 2016 08:40:35 -0300 Subject: [PATCH] test --- basilisk/basilisk_ping.c | 6 +++--- iguana/iguana_peers.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/basilisk/basilisk_ping.c b/basilisk/basilisk_ping.c index 688260f46..338e87315 100755 --- a/basilisk/basilisk_ping.c +++ b/basilisk/basilisk_ping.c @@ -247,7 +247,7 @@ void basilisk_ping_process(struct supernet_info *myinfo,struct iguana_peer *addr //else printf("\n"); //for (i=0; iRELAYID,QUEUEITEMS); + printf("<<<<<<<<<<< input ping from.(%s) rel.%d numrelays.%d datalen.%d relay.%d Q.%d\n",ipbuf,basilisk_relayid(myinfo,(uint32_t)calc_ipbits(ipbuf)),numrelays,datalen,myinfo->NOTARY.RELAYID,QUEUEITEMS); } int32_t basilisk_ping_gen(struct supernet_info *myinfo,uint8_t *data,int32_t maxlen) @@ -298,10 +298,10 @@ void basilisk_ping_send(struct supernet_info *myinfo,struct iguana_info *notary) { if ( iguana_queue_send(addr,0,myinfo->pingbuf,"SuperNETPIN",datalen) <= 0 ) printf("error sending %d to (%s)\n",datalen,addr->ipaddr); - else if ( 0 && datalen > 200 ) + else //if ( datalen > 200 ) fprintf(stderr,"+(%s).%d ",ipaddr,i); } //else fprintf(stderr,"-(%s).%d ",ipaddr,i); } - //printf("my RELAYID.%d of %d\n",myinfo->RELAYID,NUMRELAYS); + printf("my RELAYID.%d of %d\n",myinfo->NOTARY.RELAYID,myinfo->NOTARY.NUMRELAYS); } diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 285e4f1be..b9ca858eb 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -557,7 +557,7 @@ int32_t iguana_queue_send(struct iguana_peer *addr,int32_t delay,uint8_t *serial packet->embargo.millis += delay; } memcpy(packet->serialized,serialized,datalen); - if ( 0 && addr->basilisk != 0 ) + if ( addr->supernet != 0 ) printf("%p queue send.(%s) %d to (%s)\n",packet,serialized+4,datalen,addr->ipaddr); queue_enqueue("sendQ",&addr->sendQ,&packet->DL,0); return(datalen); @@ -584,7 +584,7 @@ int32_t iguana_recv(char *ipaddr,int32_t usock,uint8_t *recvbuf,int32_t len) remains -= recvlen; //int32_t i; for (i=0; i