From root@eng05.embratel.net.br  Fri Aug 17 10:02:00 2001
Return-Path: <root@eng05.embratel.net.br>
Received: from eng05.embratel.net.br (eng05.embratel.net.br [200.255.125.133])
	by hub.freebsd.org (Postfix) with ESMTP id 3C75537B407
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Aug 2001 10:02:00 -0700 (PDT)
	(envelope-from root@eng05.embratel.net.br)
Received: by eng05.embratel.net.br (Postfix, from userid 0)
	id 6349E24D5B; Fri, 17 Aug 2001 14:01:58 -0300 (BRT)
Message-Id: <20010817170158.6349E24D5B@eng05.embratel.net.br>
Date: Fri, 17 Aug 2001 14:01:58 -0300 (BRT)
From: Joao Carlos Mendes Luis <jonny@eng05.embratel.net.br>
Sender: root@eng05.embratel.net.br
Reply-To: Joao Carlos Mendes Luis <jonny@eng05.embratel.net.br>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ifconfig plumb does not work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29812
>Category:       bin
>Synopsis:       ifconfig plumb does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 17 10:10:01 PDT 2001
>Closed-Date:    Fri Aug 17 15:18:19 PDT 2001
>Last-Modified:  Fri Aug 17 15:20:49 PDT 2001
>Originator:     Joao Carlos Mendes Luis
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
Embratel
>Environment:
System: FreeBSD eng05.embratel.net.br 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #1: Fri Aug 17 11:34:54 BRT 2001 jonny@eng05.embratel.net.br:/usr/cvsup/RELENG_4/src/sys/compile/BUFFY i386

    4-STABLE, 1 week old

>Description:

    Network clone interfaces should be created with ifconfig create
command, but an alias referenced in the manal is "ifconfig plumb".
Since "create" is a special case in the ifconfig sources, it had to be
trated out of the main command list array.  In that array, plumb is
referenced but not used.  In the special case, plumb is not referenced.

    (I would also change the ifconfig manual to reference the word
"clone" somewhere near the create option)

>How-To-Repeat:
	
	ifconfig gif0 plumb

>Fix:

--- ifconfig.c.org	Fri Aug 17 13:55:06 2001
+++ ifconfig.c	Fri Aug 17 13:56:46 2001
@@ -519,7 +519,8 @@
 		 * here as we would otherwise fail when trying to find
 		 * the interface.
 		 */
-		if (argc > 0 && strcmp(argv[0], "create") == 0) {
+		if (argc > 0 && ( strcmp(argv[0], "create") == 0 ||
+		                  strcmp(argv[0], "plumb")  == 0 ) ) {
 			clone_create();
 			argc--, argv++;
 			if (argc == 0)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: roam 
Responsible-Changed-When: Fri Aug 17 10:27:47 PDT 2001 
Responsible-Changed-Why:  
Brooks Davis introduced ifconfig plumb, he should know 
what to do with this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29812 
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Fri Aug 17 15:18:19 PDT 2001 
State-Changed-Why:  
Committed similar patch. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29812 
>Unformatted:
