From a9c22c5aceb828f896dfe9e134d0109271999036 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 16 Jul 2014 20:57:52 +0200 Subject: [PATCH] gluon-core: add unique node_id This adds a `node_id` to announce.d. `node_id` is an hex-number uniquely identifying a particular node. On nodes having a primary MAC this MAC address will be used as `node_id` (sans the colons). The value is opaque. It must not be converted back into a MAC address. `node_id` should be sent in all alfred and announced packets to ensure clients can link the data to a particular node. --- .../gluon-announce/files/lib/gluon/announce/announce.d/node_id | 1 + 1 file changed, 1 insertion(+) create mode 100644 package/gluon-announce/files/lib/gluon/announce/announce.d/node_id diff --git a/package/gluon-announce/files/lib/gluon/announce/announce.d/node_id b/package/gluon-announce/files/lib/gluon/announce/announce.d/node_id new file mode 100644 index 00000000..7ff75b2d --- /dev/null +++ b/package/gluon-announce/files/lib/gluon/announce/announce.d/node_id @@ -0,0 +1 @@ +return require('gluon.sysconfig').primary_mac:gsub(':', '')