Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 1997 09:32:44 -0800 (PST)
From:      Jaye Mathisen  <mrcpu@cdsnet.net>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Route command breakage
Message-ID:  <Pine.NEB.3.95.970117093126.7665X-100000@mail.cdsnet.net>
In-Reply-To: <Mutt.19970116230635.j@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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. ;-)
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970117093126.7665X-100000>