Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 2002 18:05:21 -0700 (PDT)
From:      <cjc@FreeBSD.org>
To:        phisto@mail.ru, cjc@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: misc/38672: ifconfig+alias
Message-ID:  <200206090105.g5915Lx99468@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
        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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
        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




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