pull/174/head
Jeff Becker 6 years ago
parent 8402e091ed
commit b4517c4931
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -267,10 +267,11 @@ namespace llarp
// all BSDs have packet info
const ssize_t offset = 4;
// becuase reasons :^)
if(sz <= offset)
if(sz < offset)
sz = 1500;
ssize_t ret = ::read(fd, buf, sz);
llarp::LogInfo("read ", ret, " of ", sz, " on tun interface");
if(ret > offset && t->recvpkt)
{
buf += offset;

Loading…
Cancel
Save