aboutsummaryrefslogtreecommitdiffstats
path: root/gg_map
diff options
context:
space:
mode:
Diffstat (limited to 'gg_map')
-rw-r--r--gg_map/gg_map.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c
index 4045088..2f971a3 100644
--- a/gg_map/gg_map.c
+++ b/gg_map/gg_map.c
@@ -39,12 +39,16 @@ ip_to_str(u_int ip)
}
static void
-_cb_ggnet_addgroup(struct ggnet *net, struct ggnet_nodegroup *group)
+_cb_ggnet_addgroup(struct ggnet *net, struct ggnet_nodegroup *group,
+ struct ggnet_nodegroup *parent)
{
Egraph_Vertice *vgroup;
vgroup = egraph_group_add(_egraph, ip_to_str(group->addr.s_addr), group);
ggnet_nodegroup_usrdata_set(group, vgroup);
+ if (parent)
+ egraph_group_vertice_attach(_egraph, vgroup,
+ ggnet_nodegroup_usrdata_get(parent));
}
static void