summaryrefslogtreecommitdiffstats
path: root/src/babel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/babel.c')
-rw-r--r--src/babel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/babel.c b/src/babel.c
index 9ae6ff7..56d3ba0 100644
--- a/src/babel.c
+++ b/src/babel.c
@@ -77,6 +77,11 @@ gmrf_context_t* gmrf_protocol_init(gmrf_t *gmrf) {
gmrf_context_t *ctx = calloc(1, sizeof(gmrf_context_t));
gmrf_random_bytes(gmrf, &ctx->self, sizeof(gp_babel_node_id_t));
+ gp_babel_announce_t *announce = gp_babel_announce_new(gmrf, ctx);
+ announce->node = ctx->self;
+ announce->type = 1;
+ announce->key = 1337;
+
return ctx;
}