From c46ca793d04a4a1a004b3bb8b05a2984d5cd3f44 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/gluon-announce/files/lib/gluon/announce/announce.d/node_id | 1 + 1 file changed, 1 insertion(+) create mode 100644 gluon/gluon-announce/files/lib/gluon/announce/announce.d/node_id diff --git a/gluon/gluon-announce/files/lib/gluon/announce/announce.d/node_id b/gluon/gluon-announce/files/lib/gluon/announce/announce.d/node_id new file mode 100644 index 0000000..7ff75b2 --- /dev/null +++ b/gluon/gluon-announce/files/lib/gluon/announce/announce.d/node_id @@ -0,0 +1 @@ +return require('gluon.sysconfig').primary_mac:gsub(':', '')