On Thu, Jun 28, 2001 at 03:10:51AM +0900, Jun-ichiro itojun Hagino wrote:
> >The cloning API isn't quite that of NetBSD because the NetBSD API only
> >supported the creation of staticaly numbered interfaces which can lead
> >to races and starvation in theory.  This patch instead allows interfaces
> >to implement wildcard interface creation via "ifconfig gif# create".
> 
>       not sure if gif# has a good usage model.  if you type "ifconfig gif#
>       create" you have little idea about the new interface name, hence you
>       can't configure it after the command (think of the case where you put
>       the command into /etc/rc.local).

It is printed to stdout.  Since status is not printed on creation, it is
the only thing on stdout so it is easy to hand in a script:

newgif=`ifconfig gif# create`
ifconfig $newgif 10.0.0.1 10.0.0.2

For programmers, notification is done by modifying the name in the ifreq
used to create the new interface.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

PGP signature

Reply via email to