From owner-freebsd-bugs Sat Jun 8 18: 5:25 2002 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 BF4C237B408; Sat, 8 Jun 2002 18:05:21 -0700 (PDT) Received: (from cjc@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5915Lx99468; Sat, 8 Jun 2002 18:05:21 -0700 (PDT) (envelope-from cjc) Date: Sat, 8 Jun 2002 18:05:21 -0700 (PDT) From: Message-Id: <200206090105.g5915Lx99468@freefall.freebsd.org> To: phisto@mail.ru, cjc@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/38672: ifconfig+alias 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 Synopsis: ifconfig+alias State-Changed-From-To: closed->open State-Changed-By: cjc State-Changed-When: Sat Jun 8 18:04:59 PDT 2002 State-Changed-Why: No, there is a bug here. Look again at the last configuration (my '^'s added), nevermind# ifconfig fxp0 fxp0: flags=8843 mtu 1500 inet xxx.xxx.x.10 netmask 0xffffffc0 broadcast xxx.xxx.x.63 inet xxx.xxx.x.20 netmask 0xffffff00 broadcast xxx.xxx.x.255 ^^ ether 00:20:ed:29:33:33 media: Ethernet autoselect (100baseTX ) status: active nevermind# ifconfig fxp0 inet xxx.xxx.x.20 netmask 255.255.255.192 alias ifconfig: ioctl (SIOCAIFADDR): File exists nevermind# ifconfig fxp0 fxp0: flags=8843 mtu 1500 inet xxx.xxx.x.10 netmask 0xffffffc0 broadcast xxx.xxx.x.63 inet xxx.xxx.x.20 netmask 0xffffffc0 broadcast xxx.xxx.x.63 ^^ ether 00:20:ed:29:33:33 media: Ethernet autoselect (100baseTX ) status: active The bug here is that the netmask and broadcast _are_ changed despite the fact that an invalid alias is being added. When ifconfig(8) errors out like that, it shouldn't be leaving a broken entry. http://www.freebsd.org/cgi/query-pr.cgi?pr=38672 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message