Date: Sun, 7 Jul 2002 22:22:46 -0700 (PDT) From: "Michael O. Boev" <mike@tric.tomsk.gov.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/40322: ifconfig fails to set both mac and ip address with a single command Message-ID: <200207080522.g685MkxA039569@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 40322 >Category: bin >Synopsis: ifconfig fails to set both mac and ip address with a single command >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 07 22:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Michael O. Boev >Release: 4.6-RELEASE >Organization: Tomsk Regional Information Center >Environment: FreeBSD gw.tric.tomsk.gov.ru 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #1: Fri Jul 5 08:35:20 NOVST 2002 root@isrv.tric.tomsk.gov.ru:/usr/obj/usr/src/sys/GW i386 >Description: ifconfig fails to set both mac and ip address with a single command a command of the kind: ifconfig ed0 ether 01:02:03:04:05:06 inet 1.2.3.4 fails with the words: "can't set link-level netmask or broadcast". >How-To-Repeat: run the following command as root: ifconfig ed0 ether 01:02:03:04:05:06 inet 1.2.3.4 where ed0 is an ethernet interface (substitute any ifname and addresses) >Fix: My investigation revealed that this error message was introduced during the MFC at /src/sbin/ifconfig/ifconfig.c, version 1.51.2.16, 2002/04/03 by ru. I suspect that since I've no real intention to set any link level netmask or broadcasts, there must be an programming error somewhere in ifconfig.c, I even may guess it is in the "setifaddr" function, but I can't say it for sure, because I lack knowledge to understand the code in whole. >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?200207080522.g685MkxA039569>