From 20a2c84a1c4488ae730bcb8c0ae52a12624c1848 Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Thu, 27 Oct 2005 13:25:27 +0000 Subject: - config.c, listener.c: users of newer versions of ax25rtd have problems with the ip-encaps-dev feature (needed only in some environments). the problem was the implementation of the feature, which results in the obvious problem that after an upgrade ax25rtd will not learn any ip-routes and arp's. a secondary problem is, when you have more than one interface, ip-routes/arp's could be learned only via _one_ interface. - config.c: ip-maxroutes was ignored - ax25rtd.conf: s/ax24/ax25/ --- ax25rtd/listener.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ax25rtd/listener.c') diff --git a/ax25rtd/listener.c b/ax25rtd/listener.c index d3bd698..afaa19c 100644 --- a/ax25rtd/listener.c +++ b/ax25rtd/listener.c @@ -1,4 +1,4 @@ -/* $Id: listener.c,v 1.3 2001/11/27 04:57:43 csmall Exp $ +/* $Id: listener.c,v 1.4 2005/10/27 13:25:28 dl9sau Exp $ * * Copyright (c) 1996 Jörg Reuter (jreuter@poboxes.com) * @@ -565,7 +565,7 @@ void ax25_receive(int sock) ipmode = (ctl == LAPB_I); if (ip != 0) { - if ((config = dev_get_config(ip_encaps_dev)) == NULL) + if (*ip_encaps_dev && (config = dev_get_config(ip_encaps_dev)) == NULL) return; action = -- cgit v1.2.3