[Bug 206876] ifconfig(8): Inconsistent behavior when creating and giving custom name to interface at the same time

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 6 08:52:48 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206876

--- Comment #5 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kp
Date: Sun Mar  6 08:52:04 UTC 2016
New revision: 296425
URL: https://svnweb.freebsd.org/changeset/base/296425

Log:
  MFC r295836:
  ifconfig(8): can't use 'name' or 'description' when creating interface with
auto numbering

  If one does 'ifconfig tap create name blah', it will return error because the
  'name' command doesn't properly populate the request sent to ioctl(...). The
  'description' command has the same bug, and is also fixed with this patch.

  If one does 'ifconfig tap create mtu 9000 name blah', it DOES work, but
'tap0'
  (or other sequence number) is echoed, instead of the expected 'blah'.
(assuming
  the name change actually succeeded)

  PR:               206876
  Submitted by:       Marie Helene Kvello-Aune <marieheleneka at gmail.com>
  Differential Revision:      https://reviews.freebsd.org/D5341

Changes:
  stable/10/sbin/ifconfig/ifclone.c
  stable/10/sbin/ifconfig/ifconfig.c
  stable/10/sbin/ifconfig/ifconfig.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list