From 18fa8ff2b470b736a50fb803e1e891bc2f4d247b Mon Sep 17 00:00:00 2001 From: jhay Date: Sun, 6 Jul 1997 07:38:36 +0000 Subject: Major IPXrouted rework. In rt_change() remember to update the interface pointer otherwise we will send the RIP packets to the wrong interface(s) in future. Update the hash generator and increase the size of the hash tables. Only use the network and host parts when comparing IPX interface addresses. Immediately broadscast RIP and SAP changes. Change the alarm code to use the setitimer() call and only set a flag in the alarm signal handler. This gets rid of possible race conditions. Remove the host routing table. IPX RIP cannot do host routes, only net routes. Make the delay between broadcast packets 50ms. It seems that some Netware 4.x servers is very slow and don't have much input buffering. Handle received messages about networks and services that go down, better. Add tracing of RIP and SAP changes. It gets sysloged with a level of LOG_DEBUG. --- usr.sbin/IPXrouted/if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/IPXrouted/if.c') diff --git a/usr.sbin/IPXrouted/if.c b/usr.sbin/IPXrouted/if.c index e8aeaa6..c2522a9 100644 --- a/usr.sbin/IPXrouted/if.c +++ b/usr.sbin/IPXrouted/if.c @@ -34,7 +34,7 @@ * * static char sccsid[] = "@(#)if.c 5.1 (Berkeley) 6/4/85"; (routed/if.c) * - * $Id$ + * $Id: if.c,v 1.3 1997/02/22 16:00:55 peter Exp $ */ #ifndef lint @@ -58,7 +58,7 @@ if_ifwithaddr(addr) register struct interface *ifp; #define same(a1, a2) \ - (bcmp((caddr_t)((a1)->sa_data), (caddr_t)((a2)->sa_data), 14) == 0) + (bcmp((caddr_t)((a1)->sa_data), (caddr_t)((a2)->sa_data), 10) == 0) for (ifp = ifnet; ifp; ifp = ifp->int_next) { if (ifp->int_flags & IFF_REMOTE) continue; -- cgit v1.1