Date: Mon, 9 Jul 2001 08:16:15 -0700 (PDT) From: Mark Blackman <mark.blackman@netscalibur.co.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/28833: ifconfig if0 netmask xxx.xxx.xxx.0 doesn't change the netmask Message-ID: <200107091516.f69FGFD80111@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 28833 >Category: bin >Synopsis: ifconfig if0 netmask xxx.xxx.xxx.0 doesn't change the netmask >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 09 08:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Mark Blackman >Release: 4.3-STABLE >Organization: Netscalibur UK >Environment: System: FreeBSD amoeba.ch.dircon.net 4.3-STABLE FreeBSD 4.3-STABLE #1: Thu May 24 13:03:35 BST 2001 root@admi n4.dircon.net:/usr/obj/usr/src/sys/AMOEBA i386 >Description: "ifconfig ep0 netmask 255.255.240.0" has no effect on the netmask for ep0 This did work in FreeBSD-4.2 RELEASE. I suspect this is connnected with ifconfig changes, but I couldn't track it down. It looked like it shouldn't work in 4.2 either, but it does. The get_inaddr function seems not to do anything with which==MASK (http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/ifconfig/ifconfig.c?rev=1.51.2.6&content-type=text/x- cvsweb-markup) >How-To-Repeat: see description >Fix: only way to change netmask is via address setting as well fconfig ep0 inet 10.0.0.1 netmask 255.255.240.0 then you lose your default route. >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?200107091516.f69FGFD80111>