Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2002 17:13:21 -0700 (PDT)
From:      Jason Li <delphij@163.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/41647: ifconfig doesn't accept lladdr along with inet address family
Message-ID:  <200208140013.g7E0DLqC089830@www.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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




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