]> Cypherpunks.ru repositories - nncp.git/commitdiff
Use NNCP-related multicast address
authorSergey Matveev <stargrave@stargrave.org>
Mon, 28 Jun 2021 11:20:01 +0000 (14:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 29 Jun 2021 19:00:24 +0000 (22:00 +0300)
doc/mcd.texi
src/mcd.go

index 4410cfdb8e24ed05228490def5cd5c7720821526..958e0feb7380a48e2bb7da3f255115270bcada96 100644 (file)
@@ -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.
index dc733ca9bbfaa1d13624d4de44ad078ddf283982..d785d5c64b9461f1636de0220f37d9dde7fc73b5 100644 (file)
@@ -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