diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-02-21 14:56:14 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-09 13:47:00 +0100 |
commit | 5ffb62dd034db0beab5ef245ad7dd31aadefb2d8 (patch) | |
tree | 57d48e4c4ea20bbf72466f22f8a4bb43d685587e /nest/iface.h | |
parent | 039a65d0e4f33f8432caae78cd919d2fd2052eea (diff) |
Nest: Allow iface-only neighbors
Diffstat (limited to 'nest/iface.h')
-rw-r--r-- | nest/iface.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nest/iface.h b/nest/iface.h index d960b859..de5070d6 100644 --- a/nest/iface.h +++ b/nest/iface.h @@ -118,12 +118,15 @@ typedef struct neighbor { 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 */ +#define NEF_STICKY 1 +#define NEF_ONLINK 2 +#define NEF_BIND 4 /* Used internally for neighbors bound to an iface */ +#define NEF_IFACE 8 /* Neighbors bound to iface */ + 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_iface(struct proto *p, struct iface *ifa); static inline int neigh_connected_to(struct proto *p, ip_addr *a, struct iface *i) { |