From owner-freebsd-bugs Mon Jul 9 8:20: 6 2001 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 2A04137B403 for ; Mon, 9 Jul 2001 08:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f69FK2n80660; Mon, 9 Jul 2001 08:20:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BB17C37B406 for ; Mon, 9 Jul 2001 08:16:15 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f69FGFD80111; Mon, 9 Jul 2001 08:16:15 -0700 (PDT) (envelope-from nobody) Message-Id: <200107091516.f69FGFD80111@freefall.freebsd.org> Date: Mon, 9 Jul 2001 08:16:15 -0700 (PDT) From: Mark Blackman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/28833: ifconfig if0 netmask xxx.xxx.xxx.0 doesn't change the netmask 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 >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