Subject: change ifc_destroy to return an int
To: None <tech-net@NetBSD.org>
From: Peter Postma <peter@pointless.nl>
List: tech-net
Date: 12/04/2004 18:20:33
I would like to change ifc_destroy to return an int, so it can give the
user an error message when ifconfig dev destroy fails for some reason.

Places where this would be useful:

if_loop: return EPERM when trying to destroy lo0.
if_sl/if_strip (not cloning yet): return EBUSY when device is open.
if_tun: return EBUSY when device is open (maybe..? reduces lot of complexity).

Are there any objections to making this change?

-- 
Peter Postma