Commit d4734ab8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Implement FOR_ALL_NEIGHBOURS.

parent 852754fc
......@@ -38,6 +38,9 @@ struct neighbour {
extern struct neighbour neighs[MAXNEIGHBOURS];
extern int numneighs;
#define FOR_ALL_NEIGHBOURS(_neigh) \
for(_neigh = neighs; _neigh < neighs + numneighs; _neigh++)
int neighbour_valid(struct neighbour *neigh);
void flush_neighbour(struct neighbour *neigh);
struct neighbour *find_neighbour(const unsigned char *address,
......
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