Subject: kern/24973: destroy in ifconfig doesn't do delete
To: None <>
From: None <>
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
>Originator:     Mihai Chelaru
>Release:        NetBSD 1.6ZE
System: NetBSD 1.6ZE NetBSD 1.6ZE (Kefren) #4: Thu Nov 6 16:35:32 EET 2003 i386
Architecture: i386
Machine: i386
	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
	ifconfig gif0 netmask
	ifconfig gif0 up
	ifconfig gif0 destroy
	ifconfig gif1 create
	ifconfig gif1 tunnel
	ifconfig gif1 netmask
	ifconfig gif1 up
	ping (nada)
	route -n show | grep ^ (nada, although it should look like UH)
	ifconfig delete gif0
	route add
	ping (working)
	See above