> 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. ;-)
I know that. But it's the only possibility to manage a subnet with a
central node having many radio ports. Dividing the subnet into many small
subnets isn't feasible since I can't (1) give each user as many
IP addresses as there are radio ports and (2) make him reconfigure IP
addresses each time he switches the frequency on his radio.
> AX.25 digipeater routes just get overwriten and an ARP entry for the
> same host on different interface is not a problem.
Ok.
> > - 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
It would only delete obsolete routes on interfaces with
'ip-learn-routes=yes' (see del_kernel_ip_route()). I think this is what
the user wanted?!?
The reason why I did this was that I have two interfaces, i.e. one default
interface (pi0a) with ip-learn-routes=no and a manually added static
network route; and one optional interface (sl0) with ip-learn-routes=yes.
If a user switches from pi0a to sl0, a host route is added, overriding
the network route. If the user switches back to pi0a, I want that the now
obsolete host route on sl0 is deleted, even though pi0a has
ip-learn-routes=no. If I leave the statement where it is, this would not
happen.
Comments?
Klaus
-- Klaus Kudielka OE1KIB Peter Jordanstr. 165, A-1180 Wien, AUSTRIA terhi.victor@logonet.com http://oe1xtu.ampr.org/~oe1kib/ qluuxd@relay.tunkki.fi http://asterix.nt.tuwien.ac.at/~oe1kib/