From f5ad9f87a389c1167a8468d0190bcf6d3cc33cf6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 19 Jan 2000 11:52:32 +0000 Subject: Killed a couple of bugs in the neighbor cache. Manual disable/enable/restart/shutdown/reconfiguration of protocols no longer hangs on loops in neighbor lists :) --- nest/iface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/iface.h') diff --git a/nest/iface.h b/nest/iface.h index 64bc6b4..b13ec71 100644 --- a/nest/iface.h +++ b/nest/iface.h @@ -35,7 +35,7 @@ struct iface { unsigned index; /* OS-dependent interface index */ list addrs; /* Addresses assigned to this interface */ struct ifa *addr; /* Primary address */ - struct neighbor *neigh; /* List of neighbors on this interface */ + list neighbors; /* All neighbors on this interface */ }; #define IF_UP 1 /* IF_LINK_UP and IP address known */ @@ -94,9 +94,9 @@ struct iface *if_find_by_name(char *); typedef struct neighbor { node n; /* Node in global neighbor list */ + node if_n; /* Node in per-interface neighbor list */ ip_addr addr; /* Address of the neighbor */ struct iface *iface; /* Interface it's connected to */ - struct neighbor *sibling; /* Next in per-device chain */ struct proto *proto; /* Protocol this belongs to */ void *data; /* Protocol-specific data */ unsigned aux; /* Protocol-specific data */ -- cgit v1.2.3