From b8fb26b702f71672158e7b10c0ea07f13269118f Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 19 Sep 2016 09:38:49 -0300 Subject: [PATCH] test --- basilisk/basilisk_ping.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_ping.c b/basilisk/basilisk_ping.c index 23d2c0117..939ddf1d0 100755 --- a/basilisk/basilisk_ping.c +++ b/basilisk/basilisk_ping.c @@ -188,7 +188,7 @@ int32_t baslisk_relay_report(struct supernet_info *myinfo,uint8_t *data,int32_t int32_t basilisk_ping_processrelay(struct supernet_info *myinfo,uint8_t *data,int32_t maxlen,struct basilisk_relay *rp,int32_t i) { - uint8_t pingdelay; int32_t j,datalen = 0; uint32_t ipbits; + uint8_t pingdelay; int32_t j,datalen = 0; uint32_t ipbits; char ipaddr[64]; ipbits = rp->ipbits; if ( maxlen < sizeof(ipbits)+1 ) { @@ -202,8 +202,10 @@ int32_t basilisk_ping_processrelay(struct supernet_info *myinfo,uint8_t *data,in datalen += baslisk_relay_report(myinfo,&data[datalen],maxlen-datalen,&rp->reported[j],pingdelay); return(datalen); } - printf("notified about unknown relay\n"); // parse it to match bytes sent datalen += baslisk_relay_report(myinfo,&data[datalen],maxlen-datalen,0,pingdelay); + expand_ipbits(ipaddr,ipbits); + printf("notified about unknown relay (%s)\n",ipaddr); // parse it to match bytes sent + basilisk_addrelay_info(myinfo,0,ipbits,GENESIS_PUBKEY); return(datalen); }