From owner-freebsd-net@FreeBSD.ORG Wed Apr 20 12:43:59 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AC35106564A for ; Wed, 20 Apr 2011 12:43:59 +0000 (UTC) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.kpi.ua (comsys.kpi.ua [77.47.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id C4FE08FC1C for ; Wed, 20 Apr 2011 12:43:58 +0000 (UTC) Received: from pm513-1.comsys.kpi.ua ([10.18.52.101] helo=pm513-1.comsys.ntu-kpi.kiev.ua) by comsys.kpi.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QCVni-0003ni-Gt for freebsd-net@freebsd.org; Wed, 20 Apr 2011 14:42:30 +0300 Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001) id BD7DA1CC0B; Wed, 20 Apr 2011 14:42:26 +0300 (EEST) Date: Wed, 20 Apr 2011 14:42:25 +0300 From: Andrey Simonenko To: freebsd-net@freebsd.org Message-ID: <20110420114225.GA29917@pm513-1.comsys.ntu-kpi.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Authenticated-User: simon@comsys.ntu-kpi.kiev.ua X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Exim-Version: 4.63 (build at 10-Dec-2010 16:36:10) X-Date: 2011-04-20 14:42:30 X-Connected-IP: 10.18.52.101:13253 X-Message-Linecount: 30 X-Body-Linecount: 18 X-Message-Size: 896 X-Body-Size: 395 Subject: sys/net/radix.c refuses addresses with all zeroes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 12:43:59 -0000 Hello, The sys/net/radix.c refuses to add 0.0.0.0 address to the tree, but allows to add 0.0.0.0/32 address (when mask is specified). The question. Is it not allowed to give address with all zeroes to radix.c or is there some mistake in the radix.c code? How to check: Create file, say, zero-export: / 0.0.0.0 / -network 0.0.0.0/32 / :: / -network ::/128 and run "mountd -d zero-export".