From 58e6bf41a617bf7506852f363a037d91c91c8251 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 1 Nov 1999 00:31:14 +0000 Subject: Start making the contents of the generic framework opaque to the nodes. This step: IDs are no-longer the address of the node. Reviewd by: Archie@freebsd.org --- sys/netgraph/ng_message.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netgraph/ng_message.h') diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h index 8ff46b2..66c7fba 100644 --- a/sys/netgraph/ng_message.h +++ b/sys/netgraph/ng_message.h @@ -114,11 +114,12 @@ struct ngm_rmhook { char ourhook[NG_HOOKLEN + 1]; /* hook name */ }; +#define ng_ID_t unsigned int /* Structures used in response to NGM_NODEINFO and NGM_LISTHOOKS */ struct nodeinfo { char name[NG_NODELEN + 1]; /* node name (if any) */ char type[NG_TYPELEN + 1]; /* peer type */ - u_int32_t id; /* unique identifier */ + ng_ID_t id; /* unique identifier */ u_int32_t hooks; /* number of active hooks */ }; -- cgit v1.1