Allow varying the port for new-style handshakes
[nbd.git] / man / nbd-server.5.in.sgml
index 32ce37f..c9f618d 100644 (file)
@@ -127,20 +127,20 @@ manpage.1: manpage.sgml
        </listitem>
       </varlistentry>
       <varlistentry>
-       <term><option>user</option></term>
-        <listitem>
-          <para>
-           Optional; string.
-         </para>
+       <term><option>listenaddr</option></term>
+       <listitem>
          <para>
-           The name of the user this server must run as. If this
-           parameter is not specified, then nbd-server will not
-           attempt to change its UID (so the UID it runs as will be
-           the user who starts nbd-server). If it is specified, then
-           nbd-server will change its UID after opening ports, but
-           before accepting connections or opening files.
+           Optional; string
          </para>
-        </listitem>
+         <para>If this option is set, it should contain the local IP
+         address on which we should listen to
+         <command>nbd-client</command>(8) connections. If it is not
+           set, <command>nbd-server</command> will listen to all
+         local IPv4 and IPv6 addresses. To limit to IPv6, specify the
+         address as "::". To limit to IPv4, specify as "0.0.0.0". It
+         is not possible to specify more than one IP address
+         here.</para>
+       </listitem>
       </varlistentry>
       <varlistentry>
        <term><option>oldstyle</option></term>
@@ -181,21 +181,34 @@ manpage.1: manpage.sgml
        </listitem>
       </varlistentry>
       <varlistentry>
-       <term><option>listenaddr</option></term>
+        <term><option>port</option></term>
        <listitem>
          <para>
            Optional; string
          </para>
-         <para>If this option is set, it should contain the local IP
-         address on which we should listen to
-         <command>nbd-client</command>(8) connections. If it is not
-           set, <command>nbd-server</command> will listen to all
-         local IPv4 and IPv6 addresses. To limit to IPv6, specify the
-         address as "::". To limit to IPv4, specify as "0.0.0.0". It
-         is not possible to specify more than one IP address
-         here.</para>
+         <para>
+           The port on which to listen for new-style nbd-client
+           connections. If not specified, the IANA-assigned port of
+           10809 is used.
+         </para>
        </listitem>
-      </varlistentry
+      </varlistentry>
+      <varlistentry>
+       <term><option>user</option></term>
+        <listitem>
+          <para>
+           Optional; string.
+         </para>
+         <para>
+           The name of the user this server must run as. If this
+           parameter is not specified, then nbd-server will not
+           attempt to change its UID (so the UID it runs as will be
+           the user who starts nbd-server). If it is specified, then
+           nbd-server will change its UID after opening ports, but
+           before accepting connections or opening files.
+         </para>
+        </listitem>
+      </varlistentry>
     </variablelist>
   </refsect1>
   <refsect1>
@@ -691,7 +704,7 @@ manpage.1: manpage.sgml
   <refsect1>
     <title>SEE ALSO</title>
 
-    <para>nbd-server (1), nbd-client (8)</para>
+    <para>nbd-server (1), nbd-client (8), nbd-trdump (8)</para>
       
 
   </refsect1>