From 69a8259c5e438f949bd58b1a2f8e1d12a49f9216 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 1 Jan 2012 12:02:20 +0100 Subject: Allows sticky link-local neighbors. Allows using NEF_STICKY neighbors with link-local addresses. This is used for static route nexthops, they can be specified like fe80::1%eth0 . --- nest/iface.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nest/iface.h') diff --git a/nest/iface.h b/nest/iface.h index 7307844e..d6d58ff9 100644 --- a/nest/iface.h +++ b/nest/iface.h @@ -97,6 +97,7 @@ void if_flush_ifaces(struct proto *p); void if_feed_baby(struct proto *); struct iface *if_find_by_index(unsigned); struct iface *if_find_by_name(char *); +struct iface *if_get_by_name(char *); void ifa_recalc_all_primary_addresses(void); /* The Neighbor Cache */ @@ -110,11 +111,13 @@ 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 */ + int scope; /* Address scope, -1 for unreachable sticky neighbors, + SCOPE_HOST when it's our own address */ } neighbor; #define NEF_STICKY 1 #define NEF_ONLINK 2 +#define NEF_BIND 4 /* Used internally for neighbors bound to an iface */ neighbor *neigh_find(struct proto *, ip_addr *, unsigned flags); neighbor *neigh_find2(struct proto *p, ip_addr *a, struct iface *ifa, unsigned flags); -- cgit v1.2.3