if_connected is usefull outside of neighbour cache.
This commit is contained in:
parent
9ee07ca53f
commit
697711be2c
2 changed files with 3 additions and 1 deletions
|
@ -121,6 +121,8 @@ void neigh_if_up(struct iface *);
|
|||
void neigh_if_down(struct iface *);
|
||||
void neigh_init(struct pool *);
|
||||
|
||||
extern int if_connected(ip_addr *a, struct iface *i) /* -1=error, 1=match, 0=no match */
|
||||
|
||||
/*
|
||||
* Interface Pattern Lists
|
||||
*/
|
||||
|
|
|
@ -24,7 +24,7 @@ neigh_hash(struct proto *p, ip_addr *a)
|
|||
return (p->hash_key ^ ipa_hash(*a)) & (NEIGH_HASH_SIZE-1);
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
if_connected(ip_addr *a, struct iface *i) /* -1=error, 1=match, 0=no match */
|
||||
{
|
||||
struct ifa *b;
|
||||
|
|
Loading…
Reference in a new issue