Linux-Hams archive - January 1997: Re: ax25rtd

Re: ax25rtd

Joerg Reuter (rwm.vhmqcnr@roskapostia.tunk.net)
Wed, 08 Jan 1997 22:41:02 +0100


Hello,

> ax25rtd should handle this. But unfortunately, if a user switches from
> one interface to the other, the old route is NOT deleted, resulting in
> two host routes with the same IP address, but different interfaces. If I
> have bad luck, the route with the wrong interface comes first.

I think I had something in my mind with that behaviour, but I don't
remember what it was... Whatever it was, auto-learning IP routes is
a broken concept anyway. ;-)

> The following patch should fix this, but I assume similar problems are
> also present in the ARP table maintenance and in the AX25 routing table
> maintenance.

AX.25 digipeater routes just get overwriten and an ARP entry for the
same host on different interface is not a problem.

> #include <stdio.h>
> +#include <string.h>

Woops, sorry.

> int fds;
> FILE *fp;
>
> - if (!config->ip_add_route)
> - return 0;
> -

Please leave it right here, as ax25rtd might accidently remove manually
added routes (with 'route') otherwise. The rest of the patch appears
to be correct, though. (the missing RTF_UP explains something).
Thank you very much for the patch!

vy 73,

Joerg Reuter ampr-net: bsnw.uqzyqkvpxv@palmer.edu
AX-25 : DL1BKE @ DB0ACH.#NRW.DEU.EU
Internet: zgnnjm@mx.dy.fi

I used to be a werewolf but I'm better now--ooooooooow! ;-)