[PATCH] Fix ocserv tun read/write on FreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2015-04-04 at 21:39 +1100, Brian Chu wrote:
> 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.

Thanks. Wouldn't however be simpler to define TUN_AF_PREFIX only in
OpenBSD then?

regards,
Nikos





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux