Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Feb 2016 07:53:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206876] ifconfig(8): Inconsistent behavior when creating and giving custom name to interface at the same time
Message-ID:  <bug-206876-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206876

            Bug ID: 206876
           Summary: ifconfig(8): Inconsistent behavior when creating and
                    giving custom name to interface at the same time
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: marieheleneka@gmail.com

# uname -a
FreeBSD venus 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r295136: Tue Feb  2 09:2=
7:29
CET 2016     root@venus:/usr/obj/usr/src/sys/GENERIC  amd64

How to reproduce:
# ifconfig tap create name teststuff
tap0
ifconfig: ioctl SIOCSIFNAME (set name): Device not configured

Expected behaviour:
1: ifconfig(8) should know the name of the newly created interface (tap0) a=
nd
change its name according to the 'name' parameter (teststuff).=20
2: It should echo the name provided in 'name' parameter (example: teststuff=
),
unless it failed to change the name, in which case it should echo the
automatically numbered name. (example: tap0)

It currently does expected behavior 2, but not expected behavior 1.

Workaround: (thanks to thoht on Freenode. Below syntax is for /bin/sh)
# ifconfig $( ifconfig tap create ) name teststuff

It works as expected when using the syntax:
# ifconfig tap0 create name teststuff

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206876-8>