From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 21 17:30:10 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A85B61065673 for ; Mon, 21 Feb 2011 17:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6581B8FC1C for ; Mon, 21 Feb 2011 17:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1LHUADU085940 for ; Mon, 21 Feb 2011 17:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1LHUAEW085937; Mon, 21 Feb 2011 17:30:10 GMT (envelope-from gnats) Resent-Date: Mon, 21 Feb 2011 17:30:10 GMT Resent-Message-Id: <201102211730.p1LHUAEW085937@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, Piotr KUCHARSKI Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E8BA106566C for ; Mon, 21 Feb 2011 17:27:12 +0000 (UTC) (envelope-from bif@42.pl) Received: from 42.pl (42.pl [79.98.145.42]) by mx1.freebsd.org (Postfix) with ESMTP id 285A48FC0A for ; Mon, 21 Feb 2011 17:27:11 +0000 (UTC) Received: from 42.pl (localhost [127.0.0.1]) by 42.pl (8.14.4/8.14.4) with ESMTP id p1LHESXF082392 for ; Mon, 21 Feb 2011 18:14:28 +0100 (CET) (envelope-from bif@42.pl) Received: (from bif@localhost) by 42.pl (8.14.4/8.14.4/Submit) id p1LHENQl082391; Mon, 21 Feb 2011 18:14:23 +0100 (CET) (envelope-from bif) Message-Id: <201102211714.p1LHENQl082391@42.pl> Date: Mon, 21 Feb 2011 18:14:23 +0100 (CET) From: Piotr KUCHARSKI To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: misc/154943: ifconfig gifX create on existing gifX clears IP X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Piotr KUCHARSKI List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 17:30:10 -0000 >Number: 154943 >Category: misc >Synopsis: ifconfig gifX create on existing gifX clears IP >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 21 17:30:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Piotr KUCHARSKI >Release: FreeBSD 8.2-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD 8.2-PRERELEASE #18 r218734M: Wed Feb 16 18:19:49 CET 2011 with zfs 28 patches applied (though it should not matter) >Description: erroneous 'ifconfig gifX create' (on a wrong gif interface) clears existing IP assignments (which of course destroys all tcp connections using it) this seems like a regression from 8.1 >How-To-Repeat: # ifconfig gif5 create # ifconfig gif5 tunnel 172.16.0.1 172.31.255.254 # ifconfig gif5 10.0.0.1 10.0.0.2 # ifconfig gif5 gif5: flags=8051 metric 0 mtu 1280 tunnel inet 172.16.0.1 --> 172.31.255.254 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 options=1 # ping 10.0.0.2 # just to verify it works, even if it should not matter 64 bytes from 10.0.0.2: icmp_seq=0 ttl=64 time=27.267 ms # ifconfig gif5 create ifconfig: ioctl (SIOCAIFADDR): Destination address required # ifconfig gif5 gif5: flags=8051 metric 0 mtu 1280 tunnel inet 172.16.0.1 --> 172.31.255.254 options=1 >Fix: >Release-Note: >Audit-Trail: >Unformatted: