From owner-freebsd-net@freebsd.org Thu Apr 19 00:29:05 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDC1DF8FFB4 for ; Thu, 19 Apr 2018 00:29:04 +0000 (UTC) (envelope-from akilan1997@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 709A9695CD for ; Thu, 19 Apr 2018 00:29:04 +0000 (UTC) (envelope-from akilan1997@gmail.com) Received: by mail-it0-x244.google.com with SMTP id u62-v6so4636692ita.5 for ; Wed, 18 Apr 2018 17:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=PjqAHSz7/zRIgIPyRjnAM8HwVt7WoZp8F6Q6xd4v5YM=; b=Cf7NjGKIOCAHuUiYTCsIfx71ZroQJ/RGpgXmFW4YE0KPrUW3tRfmzIcjjeiScnXTwM IsxB/ON1kRr0KOuE1E33grC6hNbjw2nuBcdUFydWUxiIfbBT8T9SyzNIvjW4mIILhjBe zSYUnlH8mwn8gmhUDH0cRAbyFZ7CJltdHWwiDNRH6Lc41flitxwHb8AQ/MbRDP24NRDG mfbIFUBMoC1xXNC8hjxWgLOOKkPZedD0Fhsn0Nywbf6+1ilb0vE5jJV1aHbM2giISNN2 FyJrQL6VvL5FwrUV/bgTeT4VzDvEMAB88n1MsYvOgCewZ81BaEJoCY0qKJMikKx5Auoy r+qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PjqAHSz7/zRIgIPyRjnAM8HwVt7WoZp8F6Q6xd4v5YM=; b=iSqNgBb0aomAE1GDMpK7CR+Z58C/03kSffq1oxP63JySs61kNvx04Mg5//tp2qbHqf 6upS/p4fwOdZRwZlkeHthHNU/NtYe1tggN3mdrIJIvU8AIa9KsvokETSuF45WVmgyW24 geE9MofDvgdyGHGU/sVi9YZV1bV3eqxunS5A6DY4idYrLrZOyJtqywySOr+k7ZN0N9dY CJr0tNf6gzSkEnej8/Uxo5CB8N4SRCk2nV4tjOaosYcG8AlTYdv3timYEj4uBul+Zu2B S/YMeInVqMjTwqiI9CpB+yopjsCmjEwKkOfDI2Y1jy7+Oc+ZMNDP217DvMzvG+li5exI yYVA== X-Gm-Message-State: ALQs6tDeyJRyjy3C5jAIiNT6lINhYbx7KirVJdQ7tHAuSO9r7JmL4ocG BNokSvdFgnxMVZeKVm+Y3Uu0OzvPZQV8ElrZX8YH3g== X-Google-Smtp-Source: AIpwx48G4xCokFOa7U23W67v2nG+ac6dnBEcthqnFaFqjsxfqb6J7cqDAlYIDD8j7pnuUpYka9/OmDmZhyxZwPs+oaY= X-Received: by 2002:a24:5c04:: with SMTP id q4-v6mr4745073itb.69.1524097743417; Wed, 18 Apr 2018 17:29:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.155.5 with HTTP; Wed, 18 Apr 2018 17:29:02 -0700 (PDT) From: Akilan Elango Date: Thu, 19 Apr 2018 05:59:02 +0530 Message-ID: Subject: max devices in tun To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 00:29:05 -0000 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.