Introduced new protocol-dependent integer field `aux' to struct neighbor.
This commit is contained in:
parent
afa8937ac8
commit
5954dcfab7
2 changed files with 3 additions and 1 deletions
|
@ -95,6 +95,7 @@ neigh_find(struct proto *p, ip_addr *a, unsigned flags)
|
|||
n->sibling = NULL;
|
||||
n->proto = p;
|
||||
n->data = NULL;
|
||||
n->aux = 0;
|
||||
n->flags = flags;
|
||||
return n;
|
||||
}
|
||||
|
@ -107,7 +108,7 @@ neigh_dump(neighbor *n)
|
|||
debug("%s ", n->iface->name);
|
||||
else
|
||||
debug("[] ");
|
||||
debug("%s %p", n->proto->name, n->data);
|
||||
debug("%s %p %08x", n->proto->name, n->data, n->aux);
|
||||
if (n->flags & NEF_STICKY)
|
||||
debug(" STICKY");
|
||||
debug("\n");
|
||||
|
|
|
@ -100,6 +100,7 @@ typedef struct neighbor {
|
|||
struct neighbor *sibling; /* Next in per-device chain */
|
||||
struct proto *proto; /* Protocol this belongs to */
|
||||
void *data; /* Protocol-specific data */
|
||||
unsigned aux; /* Protocol-specific data */
|
||||
unsigned flags;
|
||||
} neighbor;
|
||||
|
||||
|
|
Loading…
Reference in a new issue