summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/node.c b/node.c
index 1c47d735c..ecf9ba6d8 100644
--- a/node.c
+++ b/node.c
@@ -83,6 +83,8 @@ error_t node_create (lnode_t * lnode, node_t ** node)
return err;
}
+ node_new->nn->type = NODE_TYPE_NORMAL;
+
/*link the lnode to the new node */
lnode->node = node_new;
@@ -142,6 +144,8 @@ error_t node_create_proxy (lnode_t * lnode, node_t ** node)
return err;
}
+ node_new->nn->type = NODE_TYPE_PROXY;
+
/*add this new node to the list of proxies of `lnode` */
lnode_add_proxy (lnode, node_new);
@@ -195,6 +199,10 @@ error_t node_create_from_port (mach_port_t port, node_t ** node)
return err;
}
+ /*The caller may want to change this to NODE_TYPE_SHADOW if it's
+ the case. */
+ node_new->nn->type = NODE_TYPE_PROXY;
+
/*this node is ``orphan'' -- it is not associated to any lnode
and has some service functions only */
node_new->nn->lnode = NULL;