summaryrefslogtreecommitdiffstats
path: root/nest/iface.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-12-08 05:53:53 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-12-09 06:08:47 +0100
commit631487aa2d45aa2078a08f1852e4a7482abbc2b5 (patch)
tree0388c166eeea1290caa8420f41d8aa9531ba4c00 /nest/iface.h
parenta0d2290cf82fc77b6497e08a1a69246e4084729d (diff)
downloadbird-631487aa2d45aa2078a08f1852e4a7482abbc2b5.tar
bird-631487aa2d45aa2078a08f1852e4a7482abbc2b5.zip
Make NEF_STICKY work with fixed interfaces and allow specifying interface names
Diffstat (limited to 'nest/iface.h')
-rw-r--r--nest/iface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/iface.h b/nest/iface.h
index 6d333a1..315dda5 100644
--- a/nest/iface.h
+++ b/nest/iface.h
@@ -106,6 +106,7 @@ typedef struct neighbor {
node if_n; /* Node in per-interface neighbor list */
ip_addr addr; /* Address of the neighbor */
struct iface *iface; /* Interface it's connected to */
+ char bound_iface[16]; /* Name of the interface it's bound to */
struct proto *proto; /* Protocol this belongs to */
void *data; /* Protocol-specific data */
unsigned aux; /* Protocol-specific data */
@@ -118,6 +119,7 @@ typedef struct neighbor {
neighbor *neigh_find(struct proto *, ip_addr *, unsigned flags);
neighbor *neigh_find2(struct proto *p, ip_addr *a, struct iface *ifa, unsigned flags);
+neighbor *neigh_find_ifname(struct proto *, ip_addr *, char *, unsigned flags);
static inline int neigh_connected_to(struct proto *p, ip_addr *a, struct iface *i)
{