From owner-freebsd-bugs Fri Aug 17 10:10: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BC0AE37B403 for ; Fri, 17 Aug 2001 10:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7HHA1C90960; Fri, 17 Aug 2001 10:10:01 -0700 (PDT) (envelope-from gnats) Received: from eng05.embratel.net.br (eng05.embratel.net.br [200.255.125.133]) by hub.freebsd.org (Postfix) with ESMTP id 3C75537B407 for ; 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 Reply-To: Joao Carlos Mendes Luis To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/29812: ifconfig plumb does not work Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29812 >Category: bin >Synopsis: ifconfig plumb does not work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 17 10:10:01 PDT 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message