From 631487aa2d45aa2078a08f1852e4a7482abbc2b5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 8 Dec 2011 05:53:53 +0100 Subject: Make NEF_STICKY work with fixed interfaces and allow specifying interface names --- nest/iface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nest/iface.h') 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) { -- cgit v1.2.3