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

@ -264,8 +264,12 @@ namespace llarp
int
read(byte_t* buf, size_t sz) override
{
// all BSDs have packet info
// all BSDs have packet info
#ifdef __FreeBSD__
const ssize_t offset = 0;
#else
const ssize_t offset = 4;
#endif
// becuase reasons :^)
if(sz < offset)
sz = 1500;

@ -139,13 +139,6 @@ tuntap_sys_start(struct device *dev, int mode, int tun)
return -1;
}
int set = 1;
if(ioctl(dev->tun_fd, TUNSIFHEAD, &set) == -1)
{
tuntap_log(TUNTAP_LOG_ERR, "ioctl for TUNSIFHEAD failed");
return -1;
}
/* Save flags for tuntap_{up, down} */
dev->flags = ifr.ifr_flags;

Loading…
Cancel
Save