fedanet 0.0.70: now with FreeBSD support

Tue May 5 18:33:20 2026 UTC

FEDAnet source tarball version 0.0.70 is available in the download section. It now compiles and (hopefully) works on FreeBSD; to build there, use

  gmake FLAVOR=freebsd

Please note this build mode uses clang which seems to be the FreeBSD default now; if you have gcc and want to compile with it instead of clang, use

  gmake FLAVOR=freebsd CC=gcc

or, even better

  gmake FLAVOR=freebsd CC="gcc -fdiagnostics-color=never -fno-diagnostics-show-caret"

Special thanks today go to G.Nerc=Y.uR who provided me with access to a FreeBSD-based VPS and performed a lot of configuring, which made my work possible.

I'd like also to thank everyone who supported this project monetarily.

It is a pity I couldn't finish this work to the magnificient moment of 1777777777 seconds since Epoch, which happend two days ago, May 03, early in the morning. Well, better late than never.


anonymous

From EVI (unverified) Thu May 7 20:40:14 2026 UTC

pencil

OpenBSD

# uname -a
OpenBSD evivps.my.domain 7.8 GENERIC#6 amd64

Error:

clang -O0 -Wall -g -I../lib -DFEDA_NG_SCHED=0 -DFEDA_LINUX_TUN=0 -c fsrv_tun.c -o fsrv_tun.o
fsrv_tun.c:103:15: error: use of undeclared identifier 'TUNSLMODE'
  103 |     ioctl(fd, TUNSLMODE, &i);
      |               ^
fsrv_tun.c:105:15: error: use of undeclared identifier 'TUNSIFHEAD'
  105 |     ioctl(fd, TUNSIFHEAD, &i);
      |               ^
2 errors generated.
admin.jpg's userpic

From Andrey Stolyarov profile Fri May 8 09:29:45 2026 UTC in reply to this comment

pencil

Re: OpenBSD

Thanks for reporting this. I've just sent you an email with a possible replacement for this file. Please report your results.

From what I've read in the OpenBSD's version of man tun(4), it always works in the mode which is named TUNSIFHEAD in FreeBSD, and it simply doesn't have the mode named TUNSLMODE, so these two ioctls are not needed (nor possible). Unfortunately enough, the default mode on FreeBSD is IPv4 only.