git: ifconfig - use correct name after cloning

Alex Hornung alexh at crater.dragonflybsd.org
Sun Jul 13 03:23:32 PDT 2014


commit b983c67d100afa89d1776dc3ee33f6d0a32948c5
Author: Alex Hornung <alex at alexhornung.com>
Date:   Sun Jul 13 10:45:44 2014 +0100

    ifconfig - use correct name after cloning
    
     * When running something like 'ifconfig vlan create vlandev foo vlan
       99', the vlan would be created correctly, but SIOCSETVLAN would be
       called on 'vlan' instead of the newly created vlan device.
    
     * Work around this by updating ifr_name from name (which is updated by
       the clone function) after doing the actual clone callback.

Summary of changes:
 sbin/ifconfig/ifconfig.c | 7 +++++++
 1 file changed, 7 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b983c67d100afa89d1776dc3ee33f6d0a32948c5


-- 
DragonFly BSD source repository



More information about the Commits mailing list