]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Introduced new protocol-dependent integer field `aux' to struct neighbor.
authorMartin Mares <mj@ucw.cz>
Wed, 1 Dec 1999 11:59:24 +0000 (11:59 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 1 Dec 1999 11:59:24 +0000 (11:59 +0000)
nest/iface.c
nest/iface.h

index a2746b173e6c854d83d4ef0c11a3e0d4f15443a6..be087ff428c574dd5644ef9aa0370d2c649d0cab 100644 (file)
@@ -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");
index bee9caf64446f19b7c8b7a89306258164bf710c1..87c4e93f35bebf0320a2c34bcd43d02a847e340a 100644 (file)
@@ -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;