From owner-freebsd-net@FreeBSD.ORG Fri Sep 7 19:15:56 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 A242516A417; Fri, 7 Sep 2007 19:15:56 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 1B59413C442; Fri, 7 Sep 2007 19:15:55 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l87IwERO014672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 7 Sep 2007 21:58:21 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l87IvwnM025790; Fri, 7 Sep 2007 21:58:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l87IvvwH025789; Fri, 7 Sep 2007 21:57:57 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 7 Sep 2007 21:57:57 +0300 From: Giorgos Keramidas To: "Bruce M. Simpson" Message-ID: <20070907185757.GA25624@kobe.laptop> References: <46E11515.8090007@tomjudge.com> <46E174DB.8070004@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46E174DB.8070004@FreeBSD.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.959, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.44, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Tom Judge , freebsd-net@freebsd.org 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: Fri, 07 Sep 2007 19:15:56 -0000 On 2007-09-07 16:57, "Bruce M. Simpson" 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? > > Run 'route -nv monitor' in another shell while you do this and post the > output to this list so someone can get more of a handle on it. I can reproduce what Tom describes, and route -nv monitor shows: got message of size 132 on Fri Sep 7 21:55:29 2007 RTM_ADD: Add Route: len 132, pid: 25766, seq 1, errno 0, flags: locks: inits: sockaddrs: 0.128.0.0 10.8.1.100 (0) 0 ff This is with a userland and kernel from around 15:00:00 UTC, built at: FreeBSD kobe 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Sep 6 21:06:38 EEST 2007