]> Cypherpunks.ru repositories - nncp.git/blobdiff - doc/mcd.texi
Unify @ref and @command usage
[nncp.git] / doc / mcd.texi
index 4410cfdb8e24ed05228490def5cd5c7720821526..a161f0389fb6e80bb8c0f2724aca6e5c8c377ca4 100644 (file)
@@ -1,4 +1,6 @@
 @node MCD
+@cindex MCD
+@cindex multicast discovery
 @unnumbered MultiCast Discovery
 
 MCD is an addition to online @ref{Sync, synchronization protocol}, that
@@ -7,10 +9,11 @@ in local area network. It is very simple:
 
 @itemize
 @item
-    @ref{nncp-daemon} sends multicast messages about its presence from
-    time to time. See @ref{CfgMCDSend, mcd-send} configuration option.
+    @command{@ref{nncp-daemon}} sends multicast messages about its
+    presence from time to time. See @ref{CfgMCDSend, mcd-send}
+    configuration option.
 @item
-    When @ref{nncp-caller} sees them, it adds them as the most
+    When @command{@ref{nncp-caller}} sees them, it adds them as the most
     preferred addresses to already known ones. If MCD address
     announcement was not refreshed after two minutes -- it is removed.
     See @ref{CfgMCDListen, mcd-listen} and
@@ -26,9 +29,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{@ref{nncp-daemon}}'s @option{-bind} option. That way, IP packet
+itself will carry the link-scope reachable address of the daemon.