Commit cd96887f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Export neighbour_valid.

parent c2248ea1
...@@ -37,7 +37,7 @@ THE SOFTWARE. ...@@ -37,7 +37,7 @@ THE SOFTWARE.
struct neighbour neighs[MAXNEIGHBOURS]; struct neighbour neighs[MAXNEIGHBOURS];
int numneighs = 0; int numneighs = 0;
static int int
neighbour_valid(struct neighbour *neigh) neighbour_valid(struct neighbour *neigh)
{ {
return neigh->hello_seqno != -2; return neigh->hello_seqno != -2;
......
...@@ -38,6 +38,7 @@ struct neighbour { ...@@ -38,6 +38,7 @@ struct neighbour {
extern struct neighbour neighs[MAXNEIGHBOURS]; extern struct neighbour neighs[MAXNEIGHBOURS];
extern int numneighs; extern int numneighs;
int neighbour_valid(struct neighbour *neigh);
void flush_neighbour(struct neighbour *neigh); void flush_neighbour(struct neighbour *neigh);
struct neighbour *find_neighbour(const unsigned char *address, struct neighbour *find_neighbour(const unsigned char *address,
struct network *net); struct network *net);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment