From owner-freebsd-hackers Fri Jan 17 09:33:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA15734 for hackers-outgoing; Fri, 17 Jan 1997 09:33:06 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA15728 for ; Fri, 17 Jan 1997 09:33:03 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.4/8.7.3) with SMTP id JAA28207; Fri, 17 Jan 1997 09:32:44 -0800 (PST) Date: Fri, 17 Jan 1997 09:32:44 -0800 (PST) From: Jaye Mathisen To: Joerg Wunsch cc: freebsd-hackers@freebsd.org Subject: Re: Route command breakage In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, the point was more that there doesn't seem to be anyway to delete it easily. Just replaing add with delete and various combinations didn't remove it. And the &0x display stuff in the route display is certainly new. On Thu, 16 Jan 1997, J Wunsch wrote: > As Jaye Mathisen wrote: > > > I mis-typed the following command: > > > > # route add 204.118.245.0 255.255.255.0 204.118.244.252 > > add net 204.118.245.0: gateway 255.255.255.0 > > > 204.118.244&0xcc76f4fc 255.255.255.0 UGSc 0 0 de0 > > => > > > Something is broke. > > Yes, definately -- but only your netmask. :-) > > (gdb) p/x (204<<24)+(118<<16)+(244<<8)+252 > $1 = 0xcc76f4fc > > So very simple: the route command took the third argument as a > (non-contiguous) netmask. netstat -r tries to print /masklen if the > netmask is contiguous, but simply falls back to &mask if it is not. > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) >