max devices in tun

Akilan Elango akilan1997 at gmail.com
Thu Apr 19 00:29:05 UTC 2018


Hey guys,
    I was fiddling around with the /dev/tun to write a TUN interface
for my app. I wanted to check what is the max amount of interfaces
that can be made. Turned out it was 32768 [0 - 32768). But when I
created (ifconfig tun32768 create), a weird device appeared as shown
in this figure : https://imgur.com/a/0ypbwgg.

Is this expected? and I'm unable to delete the device too from ifconfig.


More information about the freebsd-net mailing list