Subject: kern/24973: destroy in ifconfig doesn't do delete
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kefren@netbsd.ro>
List: netbsd-bugs
Date: 03/30/2004 16:58:40
>Number:         24973
>Category:       kern
>Synopsis:       destroy in ifconfig doesn't do delete
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 30 13:59:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mihai Chelaru
>Release:        NetBSD 1.6ZE
>Organization:
	
None
>Environment:
	
	
System: NetBSD smtp.girsa.ro 1.6ZE NetBSD 1.6ZE (Kefren) #4: Thu Nov 6 16:35:32 EET 2003 root@smtp.girsa.ro:/sys/arch/i386/compile/Kefren i386
Architecture: i386
Machine: i386
>Description:
	
	ifconfig int0 destroy doesn't do ifconfig int0 delete as it should do (at least it seems natural to me).
	This may lead to some problems like this one:

	ifconfig gif0 create
	ifconfig gif0 tunnel 10.10.10.10 11.11.11.11
	ifconfig gif0 192.168.1.1 192.168.1.2 netmask 255.255.255.252
	ifconfig gif0 up
	ifconfig gif0 destroy
	ifconfig gif1 create
	ifconfig gif1 tunnel 10.10.10.10 12.12.12.12
	ifconfig gif1 192.168.1.1 192.168.1.2 netmask 255.255.255.252
	ifconfig gif1 up
	ping 192.168.1.2 (nada)
	route -n show | grep ^192.168.1.2 (nada, although it should look like 192.168.1.2 192.168.1.1 UH)
	ifconfig delete gif0
	route add 192.168.1.2 192.168.1.1
	ping 192.168.1.2 (working)
>How-To-Repeat:
	
	See above
>Fix:
	

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