summaryrefslogtreecommitdiffstats
path: root/nest/iface.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-01 14:58:04 +0200
committerMartin Mares <mj@ucw.cz>2000-06-01 14:58:04 +0200
commit0f32f2a65a086561fdfd31d4efdea839ec9ce573 (patch)
tree9c92f46776f440fca0aa764c4eeefa07c47e0bad /nest/iface.h
parent56ca7acd3afd0df7928b3adfe4a8db8b29b89fb2 (diff)
downloadbird-0f32f2a65a086561fdfd31d4efdea839ec9ce573.tar
bird-0f32f2a65a086561fdfd31d4efdea839ec9ce573.zip
Modified the neighbor cache to remember local addresses as well.
neighbor->scope now contains proper address scope which is zero (SCOPE_HOST) for local addresses, higher (SCOPE_LINK, ..., SCOPE_UNIVERSE) for remote ones.
Diffstat (limited to 'nest/iface.h')
-rw-r--r--nest/iface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/iface.h b/nest/iface.h
index 94c0945..310f01e 100644
--- a/nest/iface.h
+++ b/nest/iface.h
@@ -102,6 +102,7 @@ typedef struct neighbor {
void *data; /* Protocol-specific data */
unsigned aux; /* Protocol-specific data */
unsigned flags;
+ unsigned scope; /* Address scope, SCOPE_HOST when it's our own address */
} neighbor;
#define NEF_STICKY 1