aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_message.h
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-11-01 00:31:14 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-11-01 00:31:14 +0000
commitdc90cad9d2c8155cec52e0952a492162fb4d2c4e (patch)
tree4e0da4faadbabb606f78b28d763833318292546b /sys/netgraph/ng_message.h
parentff2277c0553308d08725a3aaad5c6af64a1dd831 (diff)
downloadsrc-dc90cad9d2c8155cec52e0952a492162fb4d2c4e.tar.gz
src-dc90cad9d2c8155cec52e0952a492162fb4d2c4e.zip
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
Notes
Notes: svn path=/head/; revision=52722
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 8ff46b270525..66c7fba0a779 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 */
};