Subject: Re: Wierd route on NetBSD 2.1
To: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
From: matthew sporleder <msporleder@gmail.com>
List: netbsd-users
Date: 01/23/2006 11:25:34
 0.0.5&0xa050501 isn't a valid ip.  From the part of the message you
cut off, you can see there's a negative value for the netmask set. (I
believe it was -7)  This should not be allowed, and it seems to be
causing some sort of (casting?) error where the last octect of the ip
is a larger-than-255 hex value.

In what way is this legal?

On 1/23/06, Ignatios Souvatzis <ignatios@cs.uni-bonn.de> wrote:
> On Fri, Jan 20, 2006 at 10:24:31PM +0100, Alexander Rigbo wrote:
> > Hi there,
> >
> > I recently stumbled across a weird route in my routing table. Full tabl=
e:
>
> > 0.0.5&0xa050501    255.255.0.255      UGS         0       23      -  tl=
p0
>
> What's not to understand about this? You're using a non-contiguous
> netmask, which is perfectly legal (although seldom used) with IPv4.
>
>         -is
>