Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2011 18:14:23 +0100 (CET)
From:      Piotr KUCHARSKI <nospam@42.pl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/154943: ifconfig gifX create on existing gifX clears IP
Message-ID:  <201102211714.p1LHENQl082391@42.pl>
Resent-Message-ID: <201102211730.p1LHUAEW085937@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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<UP,POINTOPOINT,RUNNING,MULTICAST> 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<ACCEPT_REV_ETHIP_VER>
# 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<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
        tunnel inet 172.16.0.1 --> 172.31.255.254
        options=1<ACCEPT_REV_ETHIP_VER>
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102211714.p1LHENQl082391>