From nobody Sun Mar 3 14:22:33 2024 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TnkYk4hSXz5Ct8H for ; Sun, 3 Mar 2024 14:22:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TnkYj50xFz49QS for ; Sun, 3 Mar 2024 14:22:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709475753; a=rsa-sha256; cv=none; b=DEJzf78VN5BJ+OjR0rc4Kz1LSiqtHmH+wSca6LrIiFnrkL4TH5R2CBZpycoyqpcRfGlBFu EhkxAJ3tH2keSWXsHE/UYwefIpHTx5BSr2FZBQ+fDYQH30dVCv8LR3h0iP7ssErNk1Wu4E 1qB/rct4g0eg/CdFBHo6JKMJFaVDeZSyQD0Ld8+wyt8+faz6hP4BFAqFcWqb8a/QYsqE69 dNCmUeRngLlYFGjgModUV7TvxAguzQxoGXNyNaDHyHrizpGUxqnNkASBVK4gV8jvbEcZtv i3BZLambrOS5SZhiHNpHw94jNguU+JG2dl5p2+V37FEEHL7kryvzzmKZlQaX3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709475753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LnrMdgSFceoKCHBbEvIXbzedauGCKhPmU7BfvXArVCQ=; b=c+C3FPMFFjGsd9bzX6GtHUkBmer95GpAcVgXMqnbIIcuGbDUgRhgIs/6z2B2uzmhnyIN5p V8A6irKwJVWfJrb2JrIayOpNIKSvYU0/zC+eMJbgvkjN/u/5nqvB5Osfgsje+nnb6kmaRv c1dbM39FlpFKxIDG5u8GWFBh2yyNrSMDW5Dz/80A+ZlB1OM8xKYmV+za02I7+dILtzFJwc qneiyPALrPaGx+nGNW2Nifg5pMbmajZSofI868KCKHQm6Xr3/cPbQpLFhs1DhukAoUIWD3 s+Fer0sbEgyqv0qiStn9661k8Es4dxk4hLr766rToRrEBjNVMp9om2Af99fkHw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TnkYj4cxvzj1w for ; Sun, 3 Mar 2024 14:22:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 423EMXqT018523 for ; Sun, 3 Mar 2024 14:22:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 423EMXsv018522 for net@FreeBSD.org; Sun, 3 Mar 2024 14:22:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 277435] [Feature request] Add an option to destroy the tap/tun interface when the descriptor is closed Date: Sun, 03 Mar 2024 14:22:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: monsterovich@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277435 --- Comment #2 from Nikolay Borodin --- (In reply to Alan Somers from comment #1) > On the last close of the data device, the interface is brought down (as i= f with =E2=80=9Cifconfig tapN down=E2=80=9D) It's completely different. What I am suggesting refers to the automatic "ifconfig tapN destroy" when closing the descriptor. If you use tap/tun via open("/dev/tap") without a number you will get a new device each time (tap0, tap1, tap2, etc.) which cannot be destroyed during = the lifetime of the application. Doing this manually is inconvenient for the user, so we need to make the application delete the interface when it closes the descriptor. Fortunately, the Linux driver equivalent does this by default. --=20 You are receiving this mail because: You are the assignee for the bug.=