This commit is contained in:
Jeff Becker 2018-12-15 12:08:26 -05:00
parent 15883edfaf
commit ffea4b575e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -256,10 +256,7 @@ namespace llarp
tick() override tick() override
{ {
if(t->tick) if(t->tick)
{
llarp::LogInfo("tick tun");
t->tick(t); t->tick(t);
}
flush_write(); flush_write();
return true; return true;
} }
@ -278,7 +275,10 @@ namespace llarp
{ {
buf += offset; buf += offset;
ret -= offset; ret -= offset;
t->recvpkt(t, llarp::InitBuffer(buf, ret)); llarp::LogInfo("read ", ret, " of ", sz);
auto pkt = llarp::InitBuffer(buf, ret);
llarp::DumpBuffer(pkt);
t->recvpkt(t, pkt);
} }
return ret; return ret;
} }