summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_message.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-11-01 00:31:14 +0000
committerjulian <julian@FreeBSD.org>1999-11-01 00:31:14 +0000
commit58e6bf41a617bf7506852f363a037d91c91c8251 (patch)
tree4e0da4faadbabb606f78b28d763833318292546b /sys/netgraph/ng_message.h
parentc873ab347f06be8bfb334084760057811165ec63 (diff)
downloadFreeBSD-src-58e6bf41a617bf7506852f363a037d91c91c8251.zip
FreeBSD-src-58e6bf41a617bf7506852f363a037d91c91c8251.tar.gz
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
Diffstat (limited to 'sys/netgraph/ng_message.h')
-rw-r--r--sys/netgraph/ng_message.h3
1 files changed, 2 insertions, 1 deletions
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 */
};
OpenPOWER on IntegriCloud