From 5954dcfab74c8d8a2774f259c9940c1d87e76518 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 1 Dec 1999 11:59:24 +0000 Subject: [PATCH] Introduced new protocol-dependent integer field `aux' to struct neighbor. --- nest/iface.c | 3 ++- nest/iface.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nest/iface.c b/nest/iface.c index a2746b17..be087ff4 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -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"); diff --git a/nest/iface.h b/nest/iface.h index bee9caf6..87c4e93f 100644 --- a/nest/iface.h +++ b/nest/iface.h @@ -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;