tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: create network cloned devices without specifying a unit
On Wed, Jun 27, 2012 at 10:00:44PM +1000, Darren Reed wrote:
> A diff has been attached to the following PR:
>
> kern/46633: create network cloned devices without specifying a unit
>
> It should eventually show up here:
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46633
> (but is not there currently)
>
> Testing:
>
> firewall# ./ifconfig tun create
> tun0
> firewall# ./ifconfig tun create
> tun1
> firewall# ./ifconfig gif create
> gif0
> firewall# ifconfig tun1
> tun1: flags=10<POINTOPOINT> mtu 1500
> firewall# ifconfig gif0
> gif0: flags=8010<POINTOPOINT,MULTICAST>
> firewall# ifconfig gif0 destroy
> firewall# ifconfig tun1 destroy
> firewall# ifconfig tun0 destroy
> firewall# ifconfig tun0
> ifconfig: SIOCGIFFLAGS tun0: Device not configured
>
> Comments?
> Criticisims?
> Code review?
Code looks good. I can't see a use case for this myself, and as long as I can
still 'ifconfig vlan1234 create' I'm happy :)
I guess this will be usefull for higher level network management tools.
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index