Use different device name with FreeBSD

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

 



On Fri, 2018-03-09 at 14:55 +0100, Muenz, Michael wrote:
> Am 08.03.2018 um 20:47 schrieb Nikos Mavrogiannopoulos:
> > On Thu, Mar 1, 2018 at 9:35 AM, Muenz, Michael <m.muenz at spam-fetish
> > .org> wrote:
> > > Hi list
> > > 
> > > I'm want to build a OCServ plugin for OPNsense Firewall based on
> > > FreeBSD.
> > > In the config there's an option "device" to set the name of the
> > > tun device.
> > > 
> > > It seems to work fine on Linux but it doesn't work for FreeBSD.
> > > Whenever I connect with a client the device is called tunX+1.
> > > 
> > > Sadly this does interfere with the logic of OPNsense to assign
> > > interfaces
> > > via UI.
> > > 
> > > Do you see any chances to port this feature also to FreeBSD?
> > 
> > Would you like to try this branch of ocserv?
> > https://gitlab.com/ocserv/ocserv/merge_requests/71
> > 
> > regards,
> > Nikos
> > 
> 
> Hi Nikos,
> 
> thanks for the patch but it doesn't compile against my ports:
> 
> 
> In file included from worker-resume.c:36:
> ./vpn.h:90:12: warning: comparison of unsigned enum expression < 0
> is?
> always false [-Wtautological-compare]
> ???????? if (proto < 0 || proto >= PROTO_MAX)
> ???????????? ~~~~~ ^ ~
> depbase=`echo worker-http.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> cc -DHAVE_CONFIG_H -I. -I..?? -I../src/http-parser/? -I./../gl/?
> -I./../gl/ -I./ -I./../ -I./../ -I../libopts -I/usr/local/include?
> -I/usr/local/include/p11-kit-1? -I./common -I./common?
> -I/usr/local/include? -I/usr/local/include??? -I/usr/local/include?
> -I/usr/local/include/liboath??? -I/usr/local/include?
> -I/usr/local/include/p11-kit-1? -I./pcl/ -I/usr/local/include
> -isystem?
> /usr/local/include? -O2 -pipe? -fPIE -fPIC -fstack-protector-all?
> -isystem /usr/local/include -fno-strict-aliasing -Wall?
> -Wno-strict-aliasing -MT worker-http.o -MD -MP -MF $depbase.Tpo -c
> -o?
> worker-http.o worker-http.c &&\
> mv -f $depbase.Tpo $depbase.Po
> tun.c:460:11: warning: implicit declaration of function 'GETCONFIG'
> is?
> invalid in C99 [-Wimplicit-function-declaration]

Not sure why this macro wasn't found. I've done some cleanups and
freebsd build [0] seems to succeed; could you try again?

[0]. https://gitlab.com/ocserv/ocserv/-/jobs/56704949

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