diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-12-08 05:53:53 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-12-29 21:41:34 +0100 |
commit | 7e08f5ab64aaab1c40da2ce6b54c18ce791188df (patch) | |
tree | 37ea6fcfac63b007f40d36d8eda30118194244de /nest/iface.h | |
parent | 484e03a6864c4476814acc93e5b810cb12fa994f (diff) | |
download | bird-7e08f5ab64aaab1c40da2ce6b54c18ce791188df.tar bird-7e08f5ab64aaab1c40da2ce6b54c18ce791188df.zip |
Make NEF_STICKY work with fixed interfaces and allow specifying interface names
Diffstat (limited to 'nest/iface.h')
-rw-r--r-- | nest/iface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/iface.h b/nest/iface.h index 7307844..8636c0a 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) { |