Hi Nikos, In commit 9d51069 you added handling for the additional 4-byte packet header that's present on OpenBSD. However, this is broken on FreeBSD because whilst TUNSIFHEAD is defined, it is not set by default. The attached patch fixes this by setting this ioctl after creating the tun device. I've also attached 2 trivial patches for fixing an extraneous return value and indentation. Cheers, Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Fix-invalid-return-value.patch Type: application/octet-stream Size: 668 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20150404/825d79be/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-Fix-indentation.patch Type: application/octet-stream Size: 1857 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20150404/825d79be/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0003-Set-TUNSIFHEAD-on-the-tun-device-if-supported.patch Type: application/octet-stream Size: 864 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20150404/825d79be/attachment-0002.obj>