From 512f39be16c63a9ab0a9f27d40c9cfbb2339f9c2 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 28 Jun 2021 14:20:01 +0300 Subject: [PATCH] Use NNCP-related multicast address --- doc/mcd.texi | 12 ++++++------ src/mcd.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/mcd.texi b/doc/mcd.texi index 4410cfd..958e0fe 100644 --- a/doc/mcd.texi +++ b/doc/mcd.texi @@ -26,9 +26,9 @@ MCD announcement is an XDR-encoded packet with only two fields: @end verbatim Magic number is @verb{|N N C P D 0x00 0x00 0x01|} and sender is 32-byte -identifier of the node. It is sent as UDP packet on IPv6 @verb{|ff02::1|} -multicast address (all hosts in the network) and hard-coded @strong{5400} -port. Operating system will use IPv6 link-local address as a source one, -with the port taken from @command{nncp-daemon}'s @option{-bind} option. -That way, IP packet itself will carry the link-scope reachable address -of the daemon. +identifier of the node. It is sent as UDP packet on IPv6 +@strong{@verb{|ff02::4e4e:4350|}} (hexadecimal ASCII @verb{|NNCP|}) +multicast address and @strong{5400} port. Operating system will use IPv6 +link-local address as a source one, with the port taken from +@command{nncp-daemon}'s @option{-bind} option. That way, IP packet +itself will carry the link-scope reachable address of the daemon. diff --git a/src/mcd.go b/src/mcd.go index dc733ca..d785d5c 100644 --- a/src/mcd.go +++ b/src/mcd.go @@ -45,7 +45,7 @@ type MCDAddr struct { var ( MagicNNCPDv1 [8]byte = [8]byte{'N', 'N', 'C', 'P', 'D', 0, 0, 1} - mcdIP = net.ParseIP("ff02::1") + mcdIP = net.ParseIP("ff02::4e4e:4350") mcdAddrLifetime = 2 * time.Minute mcdPktSize int -- 2.44.0