From owner-freebsd-net@FreeBSD.ORG Mon Sep 17 10:13:54 2007 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 A6F4B16A41B for ; Mon, 17 Sep 2007 10:13:54 +0000 (UTC) (envelope-from nuno.antunes@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 32D2413C469 for ; Mon, 17 Sep 2007 10:13:53 +0000 (UTC) (envelope-from nuno.antunes@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1089052nfb for ; Mon, 17 Sep 2007 03:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3KRp4F08/bCJx5gzhYzBQ2h0TA5rJ23Y2WnVfGfBcJc=; b=IYwa9J5uON1vS8Ac3bfAgryyuMY/SFK9dCLCqnyNKZOIbrVoOoZyjx59O26f/dvnNV3gKhOTZ5mk3SAj05yN7mfEgST1pxbnyP7i4wYf9jIBTELs4xcCGrNd5zIq14LoK/nJe6yQSUnSA2ocGqG2koUNiXVMxAb3hVUNPQ8HcBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T5R8CIPuByoIK1QBrCVy8jHI4ylu8tV3OK58l1Rf3KxUhifhkAL5mn+k20MOlUgq6D2F8xwiEm9nH8maLvSXpOb2GH267a+E0lHdpRuC0M+s4WzEkl0RErMV2hd2S1VeP560y6Lzw9Y4KyK1Odl/UeaLk4qeWJhKNJrkh5daU/c= Received: by 10.86.73.17 with SMTP id v17mr3609710fga.1190024032801; Mon, 17 Sep 2007 03:13:52 -0700 (PDT) Received: by 10.86.3.15 with HTTP; Mon, 17 Sep 2007 03:13:52 -0700 (PDT) Message-ID: <262949390709170313t649a40d2n5b0598a8bcc034a7@mail.gmail.com> Date: Mon, 17 Sep 2007 11:13:52 +0100 From: "Nuno Antunes" To: "Tom Judge" In-Reply-To: <46EE4CC8.4000906@tomjudge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46E11515.8090007@tomjudge.com> <46E174DB.8070004@FreeBSD.org> <20070907185757.GA25624@kobe.laptop> <262949390709091803s507265e6mf3929c4dd26ecc56@mail.gmail.com> <20070910110528.GB2476@kobe.laptop> <20070910115636.GA8326@kobe.laptop> <46EE4CC8.4000906@tomjudge.com> Cc: freebsd-net@freebsd.org, "Bruce M. Simpson" , Giorgos Keramidas Subject: Re: Strange behaviour of route command 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: Mon, 17 Sep 2007 10:13:54 -0000 On 9/17/07, Tom Judge wrote: > Giorgos Keramidas wrote: > > On 2007-09-10 14:05, Giorgos Keramidas wrote: > >> On 2007-09-10 02:03, Nuno Antunes wrote: > >>>>> Tom Judge wrote: > >>>>>> Hi, > >>>>>> While making some changes to the routing table on one of our routers > >>>>>> today I noticed that "route add" was showing some strange > >>>>>> behaviour. When adding a route for 128/8 to the table rather than > >>>>>> adding 128.0.0.0/8 it would add 0.0.0.0/8, however adding 10/9 works > >>>>>> correctly. > >>>>>> > >>>>>> Is this a bug in route or the routing table? > >>> Hi, > >>> Can you take a look at this patch, please? > >>> > >>> http://leaf.dragonflybsd.org/mailarchive/submit/2007-09/msg00000.html > >> Fantastic, thanks for the pointer! :-) > >> > >> Skimming fast through the diff it seems to be ok. It doesn't apply > >> cleanly over HEAD so some merging was required to get this version > >> instead: BTW, there's also a fix for netstat to print CIDR network addresses correctly: http://leaf.dragonflybsd.org/mailarchive/submit/2007-09/msg00005.html Cheers, Nuno