Strange behaviour of route command

Giorgos Keramidas keramida at freebsd.org
Mon Sep 17 05:37:47 PDT 2007


On 2007-09-17 10:45, Tom Judge <tom at tomjudge.com> wrote:
>Giorgos Keramidas wrote:
>>On 2007-09-10 14:05, Giorgos Keramidas <keramida at freebsd.org> wrote:
>>>On 2007-09-10 02:03, Nuno Antunes <nuno.antunes at gmail.com> wrote:
>>>>>> Tom Judge wrote:
>>>>>>> Hi,
>>>>>>> While making some changes to the routing table on one of our routers
>>>>>>> today I noticed that "route add" was showing some strange
>>>>>>> behaviour. When adding a route for 128/8 to the table rather than
>>>>>>> adding 128.0.0.0/8 it would add 0.0.0.0/8, however adding 10/9 works
>>>>>>> correctly.
>>>>>>>
>>>>>>> Is this a bug in route or the routing table?
>>>>
>>>> Hi,
>>>> Can you take a look at this patch, please?
>>>>
>>>> http://leaf.dragonflybsd.org/mailarchive/submit/2007-09/msg00000.html
>>>
>>> Fantastic, thanks for the pointer! :-)
>
> Is there any chance of getting this commited, or should I raise a PR
> about this?

I'm not an src-committer, so we have to get an approval from Bruce
first, but the patch is saved in my online patch queue:

http://hg.hellug.gr/freebsd/src-keramida/file/08d313afdc9a/

The patch is the file called 'route'.

On 2007-09-17 11:13, Nuno Antunes <nuno.antunes at gmail.com> wrote:
> BTW, there's also a fix for netstat to print CIDR network addresses correctly:
> http://leaf.dragonflybsd.org/mailarchive/submit/2007-09/msg00005.html

Neat, yeah I noticed that too, while looking at the threads about
route/netstat.  I just came back from a trip and I will have some
time to see how much of it applies to FreeBSD's netstat too.

Thanks once more :)




More information about the freebsd-net mailing list