From owner-freebsd-bugs Tue Aug 13 17:20: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0314737B400 for ; Tue, 13 Aug 2002 17:20:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D55F743E6E for ; Tue, 13 Aug 2002 17:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7E0K1JU020256 for ; Tue, 13 Aug 2002 17:20:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7E0K1sY020255; Tue, 13 Aug 2002 17:20:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F93937B400 for ; Tue, 13 Aug 2002 17:13:22 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F85F43E65 for ; Tue, 13 Aug 2002 17:13:22 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g7E0DLOT089831 for ; Tue, 13 Aug 2002 17:13:21 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g7E0DLqC089830; Tue, 13 Aug 2002 17:13:21 -0700 (PDT) Message-Id: <200208140013.g7E0DLqC089830@www.freebsd.org> Date: Tue, 13 Aug 2002 17:13:21 -0700 (PDT) From: Jason Li To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/41647: ifconfig doesn't accept lladdr along with inet address family 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: 41647 >Category: bin >Synopsis: ifconfig doesn't accept lladdr along with inet address family >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 13 17:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Jason Li >Release: 4.6-STABLE >Organization: Frontfree Technology Network >Environment: FreeBSD cluster.frontfree.net 4.6-STABLE FreeBSD 4.6-STABLE #40: Tue Aug 13 18:34:38 CST 2002 root@cluster.frontfree.net:/usr/obj/usr/src/sys/FIREWALL i386 >Description: When synchronized with RELENG_4, the ifconfig was introduced with a strange behavior. It can't accept lladdr parameter along with inet address. This behavior should be considered as a bug, because when issuing ifconfig seperately with lladdr, then inet address family, it works well. This problem should be something wrong with the ifconfig.c, when replaced with some version prior to 1.72.3(dated Wed Mar 20 17:55:07 2002 UTC), the problem goes away. I've checked the code, and I think the problem was with the command line parser. >How-To-Repeat: run ifconfig with some parameters similar to this(the adapter name could vary): ifconfig fxp0 inet 10.1.1.254 netmask 0xffffff00 ether 00:20:af:7d:99:dc but the ifconfig works well when issuing seperately: ifconfig fxp0 inet 10.1.1.254 netmask 0xffffff00 then ifconfig fxp0 ether 00:20:af:7d:99:dc >Fix: Workaround: Rollback the ifconfig.c to version 1.72.3 or prior, which could be downloaded from http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sbin/ifconfig/ifconfig.c?rev=1.72&content-type=text/plain >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message