Subject: Re: Wierd route on NetBSD 2.1
To: None <netbsd-users@NetBSD.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: netbsd-users
Date: 01/26/2006 12:41:02
--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Thu, Jan 26, 2006 at 10:10:56AM +0100, Ignatios Souvatzis wrote:
> On Mon, Jan 23, 2006 at 01:18:23PM -0500, matthew sporleder wrote:
> > I didn't realize this was legal in the ip addressing standard,
> > however, if nothing else, it's a problem with 'netstat' 's inability
> > to represent the number, which is a netbsd problem:
> >
> > # netstat -rnf inet
> > 0.0.5&0xa050501 255.255.0.255 UGS 0 23 - tlp0
>
> But it represents it fine... 0.0.5.0 with a mask (anded with)
> 0xa050501. I don't see any problem there.
>
> > and (to a lesser extent) 'route' 's reporting of a negative mask:
> > (I don't know a better way to report this, maybe /-8 would be better.
> > Maybe slash notation just doesn't work for non-contiguous masks)
>
> That's correct. Slash notation doesn't work for non-contiguous masks.
> Maybe "route show" shouldn't try that.
I've fixed "route" in -current (sbin/route/route.c 1.96).
-is
--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iD8DBQFD2LVNN4tiz3B8hB0RAh0RAKC850Ssbao/gVPvsA/LIg9UcpEoQwCfVv8c
rGpj9QNHI1oGd5hd0WOAb2g=
=Utgl
-----END PGP SIGNATURE-----
--DocE+STaALJfprDB--