From owner-freebsd-hackers Thu Jan 16 20:38:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA09299 for hackers-outgoing; Thu, 16 Jan 1997 20:38:03 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id UAA08983 for ; Thu, 16 Jan 1997 20:30:35 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id FAA10470; Fri, 17 Jan 1997 05:28:43 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id XAA16186; Thu, 16 Jan 1997 23:06:35 +0100 (MET) Message-ID: Date: Thu, 16 Jan 1997 23:06:35 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: mrcpu@cdsnet.net (Jaye Mathisen) Cc: freebsd-hackers@freebsd.org Subject: Re: Route command breakage References: X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Jaye Mathisen on Jan 15, 1997 16:49:55 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)