From b4517c49318cdd2594d79a73ff646c552d138c2d Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 15 Dec 2018 11:39:14 -0500 Subject: [PATCH] more --- llarp/ev_kqueue.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llarp/ev_kqueue.hpp b/llarp/ev_kqueue.hpp index 11686890e..cb2187e09 100644 --- a/llarp/ev_kqueue.hpp +++ b/llarp/ev_kqueue.hpp @@ -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;