From f750542b20acec2cf78b8e00dce9aeb9d98572a2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 9 Oct 2017 17:12:00 -0700 Subject: fixes #92 Support ZT federations (moons) This also fixes a fence post error in the ephemeral state handling . --- tests/zt.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/zt.c b/tests/zt.c index ee6bf9cc..9e6557bc 100644 --- a/tests/zt.c +++ b/tests/zt.c @@ -214,7 +214,22 @@ TestMain("ZeroTier Transport", { strlen(path1) + 1) == 0); So(nng_listener_start(l, 0) == 0); - }) + + Convey("And we can orbit a moon", { + uint64_t ids[2]; + // Provided by Janjaap... + ids[0] = 0x622514484aull; + ids[1] = 0x622514484aull; + + So(nng_listener_setopt(l, NNG_OPT_ZT_ORBIT, ids, sizeof (ids)) == 0); + + }); + Convey("And we can deorbit anything", { + uint64_t id; + id = 0x12345678; + So(nng_listener_setopt(l, NNG_OPT_ZT_DEORBIT, &id, sizeof (id)) == 0); + }); + }); }); Convey("We can create a zt dialer", { -- cgit v1.2.3-70-g09d2