From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 20 11:20:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29FC0ECC for ; Fri, 20 Dec 2013 11:20:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DF09E18DE for ; Fri, 20 Dec 2013 11:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKBK1nM009713 for ; Fri, 20 Dec 2013 11:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBKBK1m2009712; Fri, 20 Dec 2013 11:20:01 GMT (envelope-from gnats) Resent-Date: Fri, 20 Dec 2013 11:20:01 GMT Resent-Message-Id: <201312201120.rBKBK1m2009712@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John P Hartmann Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BE6CCF2 for ; Fri, 20 Dec 2013 11:18:18 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 088DC18B5 for ; Fri, 20 Dec 2013 11:18:18 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBKBIHiF042833 for ; Fri, 20 Dec 2013 11:18:17 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBKBIHxX042826; Fri, 20 Dec 2013 11:18:17 GMT (envelope-from nobody) Message-Id: <201312201118.rBKBIHxX042826@oldred.freebsd.org> Date: Fri, 20 Dec 2013 11:18:17 GMT From: John P Hartmann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/185023: Closing tun interface deconfigures IP address X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 11:20:02 -0000 >Number: 185023 >Category: kern >Synopsis: Closing tun interface deconfigures IP address >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 20 11:20:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John P Hartmann >Release: 9.1 >Organization: Self >Environment: [root@fb91 ~]# uname -a FreeBSD fb91.jphartmann.net 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When a /dev/tun special file is closed, it loses its assigned IP address. Looks like it happens near line 467 of if_tun.c (the close routine), but I am not sure exactly where. >How-To-Repeat: [root@fb91 ~]# ifconfig tun0 up 10.0.0.103 10.0.0.104 [root@fb91 ~]# ifconfig tun0 tun0: flags=8051 metric 0 mtu 1500 options=80000 inet6 fe80::7254:d2ff:fe45:e0a0%tun0 prefixlen 64 scopeid 0x5 inet 10.0.0.103 --> 10.0.0.104 netmask 0xff000000 nd6 options=21 [root@fb91 ~]# cat /dev/tun0 ^C [root@fb91 ~]# ifconfig tun0 tun0: flags=8010 metric 0 mtu 1500 options=80000 nd6 options=21 >Fix: >Release-Note: >Audit-Trail: >Unformatted: