Teach IPXrouted to handle the internal net properly.
PR: 9871 Submitted by: Boris Popov <bp@butya.kz>
This commit is contained in:
parent
b649387cc4
commit
ca80ccd10b
@ -28,7 +28,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sap_tables.c,v 1.4 1997/07/01 00:33:41 bde Exp $
|
||||
* $Id: sap_tables.c,v 1.5 1997/07/06 07:38:33 jhay Exp $
|
||||
*/
|
||||
|
||||
#include "defs.h"
|
||||
@ -134,19 +134,6 @@ sap_nearestserver(ushort ServType, struct interface *ifp)
|
||||
for(sap = sh->forw; sap != (sap_entry *)sh; sap = sap->forw) {
|
||||
if (ServType != sap->sap.ServType)
|
||||
continue;
|
||||
if (ifp == sap->ifp)
|
||||
continue;
|
||||
|
||||
csap = sap->clone;
|
||||
while (csap) {
|
||||
if (ifp == csap->ifp)
|
||||
/*
|
||||
* I would have loved to use
|
||||
* something else here.
|
||||
*/
|
||||
goto next;
|
||||
csap = csap->clone;
|
||||
}
|
||||
|
||||
if (ntohs(sap->sap.hops) < besthops) {
|
||||
best = sap;
|
||||
|
@ -35,7 +35,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: startup.c,v 1.6 1997/02/22 16:01:01 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -183,6 +183,9 @@ ifinit(void)
|
||||
}
|
||||
ifs.int_dstaddr = *brdaddr;
|
||||
}
|
||||
if (ifs.int_flags & IFF_LOOPBACK) {
|
||||
ifs.int_dstaddr = ifs.int_addr;
|
||||
}
|
||||
/*
|
||||
* already known to us?
|
||||
* what makes a POINTOPOINT if unique is its dst addr,
|
||||
@ -193,9 +196,6 @@ ifinit(void)
|
||||
( ((ifs.int_flags & IFF_POINTOPOINT) == 0) &&
|
||||
if_ifwithaddr(&ifs.int_addr)))
|
||||
continue;
|
||||
/* no one cares about software loopback interfaces */
|
||||
if (ifs.int_flags & IFF_LOOPBACK)
|
||||
continue;
|
||||
ifp = (struct interface *)
|
||||
malloc(sdl->sdl_nlen + 1 + sizeof(ifs));
|
||||
if (ifp == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user