From nobody@FreeBSD.org  Mon Oct 17 15:29:10 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3FCA416A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Oct 2005 15:29:10 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0C87D43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Oct 2005 15:29:10 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9HFT9kW028638
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Oct 2005 15:29:09 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9HFT9Ae028637;
	Mon, 17 Oct 2005 15:29:09 GMT
	(envelope-from nobody)
Message-Id: <200510171529.j9HFT9Ae028637@www.freebsd.org>
Date: Mon, 17 Oct 2005 15:29:09 GMT
From: Vladimir Kotal <vlada@devnull.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ifconfig create does not print device name to STDOUT when creation was successfull
X-Send-Pr-Version: www-2.3

>Number:         87574
>Category:       kern
>Synopsis:       ifconfig create does not print device name to STDOUT when creation was successfull
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 17 15:30:11 GMT 2005
>Closed-Date:    Mon Oct 17 21:54:14 GMT 2005
>Last-Modified:  Mon Oct 17 21:54:14 GMT 2005
>Originator:     Vladimir Kotal
>Release:        4.11-RELEASE
>Organization:
>Environment:
FreeBSD  4.11-RELEASE FreeBSD 4.11-RELEASE #0: Fri Jan 21 17:21:22 GMT 2005     root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
in ifconfig(8) man page it is stated that 

'If creation of an arbitrary device is successful, the new device name is printed to standard output.'

This does not correspond with actual behavior of ifconfig:

root@# ifconfig gif4 create
root@# ifconfig gif4
gif4: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
root@# 
>How-To-Repeat:
Try to create gif (and maybe other clone-ized) interface on FreeBSD 4.x and watch for successfull creation of the device followed by its name printed out to stdout.
>Fix:
either fix the man page or apply following patch:
http://techie.devnull.cz/public/patches/ifconfig.c-create.patch
>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Vladimir Kotal <vlada@devnull.cz>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/87574: ifconfig create does not print device name to STDOUT when creation was successfull
Date: Mon, 17 Oct 2005 14:30:03 -0700

 The manpage is correct, if perhaps poorly worded.  You have to read the
 sentence before the one you quoted.  The key word is arbitrary.
 ifconfig prints the name of the create interface if and only if it
 differs from the name given:
 
 [2:25pm] brooks@varan (~): uname -v
 FreeBSD 4.11-STABLE #7: Tue Mar  1 11:47:43 PST 2005
 [2:26pm] brooks@varan (~): sudo ifconfig gif create
 Password:
 gif0
 [2:26pm] brooks@varan (~): sudo ifconfig gif1 create
 [2:26pm] brooks@varan (~):
 
 This is the most useful behavior because if gives you the interface name
 on stdout (and thus requires you do deal with it) if and only if you
 didn't already know it.
 
 -- Brooks
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Mon Oct 17 21:53:35 GMT 2005 
State-Changed-Why:  
Manpage correctly docuements current behavior. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87574 
>Unformatted:
