ifconfig - use correct name after cloning
authorAlex Hornung <alex@alexhornung.com>
Sun, 13 Jul 2014 09:45:44 +0000 (10:45 +0100)
committerAlex Hornung <alex@alexhornung.com>
Sun, 13 Jul 2014 11:22:25 +0000 (12:22 +0100)
commitb983c67d100afa89d1776dc3ee33f6d0a32948c5
treef0fdb682cb88dafb9f3428baba137e937a4a4743
parenta939f930fbf9c162544b0c3057a94dbc5779c0aa
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.
sbin/ifconfig/ifconfig.c