god damnit

pull/174/head
Jeff Becker 6 years ago
parent 45485386c6
commit 978fdbfdb1
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -265,13 +265,9 @@ namespace llarp
int
read(byte_t* buf, size_t sz)
{
// freebsd does not have packet info
#ifdef __FreeBSD__
const ssize_t offset = 0;
#else
// all BSDs have packet info
const ssize_t offset = 4;
#endif
ssize_t ret = tuntap_read(tunif, buf, sz);
ssize_t ret = tuntap_read(tunif, buf, sz);
if(ret > offset && t->recvpkt)
{
buf += offset;

Loading…
Cancel
Save