From owner-freebsd-net@FreeBSD.ORG Thu Jan 20 14:33:29 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F6AE16A4CE for ; Thu, 20 Jan 2005 14:33:29 +0000 (GMT) Received: from gvr.gvr.org (gvr-gw.gvr.org [80.126.103.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D9D743D54 for ; Thu, 20 Jan 2005 14:33:29 +0000 (GMT) (envelope-from guido@gvr.org) Received: by gvr.gvr.org (Postfix, from userid 657) id 6EAD5C14D; Thu, 20 Jan 2005 15:33:28 +0100 (CET) Date: Thu, 20 Jan 2005 15:33:28 +0100 From: Guido van Rooij To: freebsd-net@freebsd.org Message-ID: <20050120143328.GA6732@gvr.gvr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: loopback device types and netmask X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 14:33:29 -0000 It seems that the netmask is ignored on loopback type devices. Especially with the discard device this is annoying. If one has a discard interface with the following settings: disc0: flags=8009 mtu 65532 inet 10.100.100.1 netmask 0xffffff00 only 10.100.100.1 is sent to the discard device. All the others need to be explcitly routed towards it. This seems non-intuitive. A quick glance through the code didn't reveil where/how to fix this. Anyone? -Guido