Revision 200accf3

View differences:

nest/iface.h
114 114
 */
115 115
neighbor *neigh_find(struct proto *, ip_addr *, unsigned flags);
116 116

  
117
static inline int neigh_connected_to(struct proto *p, ip_addr *a, struct iface *i)
118
{
119
  neighbor *n = neigh_find(p, a, 0);
120
  return n && n->iface == i;
121
}
122

  
117 123
void neigh_dump(neighbor *);
118 124
void neigh_dump_all(void);
119 125
void neigh_prune(void);
......
121 127
void neigh_if_down(struct iface *);
122 128
void neigh_init(struct pool *);
123 129

  
124
extern int if_connected(ip_addr *a, struct iface *i); /* -1=error, 1=match, 0=no match */
125

  
126 130
/*
127 131
 *	Interface Pattern Lists
128 132
 */
nest/neighbor.c
24 24
  return (p->hash_key ^ ipa_hash(*a)) & (NEIGH_HASH_SIZE-1);
25 25
}
26 26

  
27
int
27
static int
28 28
if_connected(ip_addr *a, struct iface *i) /* -1=error, 1=match, 0=no match */
29 29
{
30 30
  struct ifa *b;

Also available in: Unified diff