[go-nuts] can't read data from the tun device

2023-06-15 Thread akalio ja
func openTun(ch chan int, timer *time.Timer) { fd, err := unix.Open("/dev/net/tun", unix.O_RDWR|unix.O_NONBLOCK, 0) if err != nil { panic(err) } defer unix.Close(fd) var ifr struct { name [16]byte flags uint16 _ [22]byte } copy(ifr.

Re: [go-nuts] can't read data from the tun device

2023-06-15 Thread akalio ja
CGO_CFLAGS="-O2 -g" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2 -g" CGO_FFLAGS="-O2 -g" CGO_LDFLAGS="-O2 -g" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map