\fBnbd-server\fR will look for the
literal string '%s' in the
\fBexportname\fR, and replace it by the
-IP address of the connecting host in dotted-quad
-notation. The string that results from this
-transformation will be used as an absolute pathname
-that \fBnbd-server\fR will attempt to
-open. As an example, if a client connects from
-192.168.1.100 and \fBexportname\fR is
-specified as \fI/export/%s\fR, then
-nbd-server will attempt to serve
+address of the connecting host. The string that
+results from this transformation will be used as an
+absolute pathname that \fBnbd-server\fR
+will attempt to open. As an example, if a client
+connects from 192.168.1.100 and
+\fBexportname\fR is specified as
+\fI/export/%s\fR, then nbd-server
+will attempt to serve
\fI/export/192.168.1.100\fR
.TP
\fBiphash\fR
same example, \fBnbd-server\fR would
open \fI/export/192/168/1/100\fR
instead.
+
+Since there are no dots in most IPv6 addresses, the
+effect of using this option when IPv6 is in use is
+indistinguishable from the ipliteral option.
.TP
\fBcidrhash\fR
This option requires one to add a space and a number
cidrhash 26, then
\fBnbd-server\fR will try to open
\fI/export/192.168.1.64/192.168.1.100\fR\&.
+
+This option works as expected for IPv6.
.RE
.TP
\fBprerun\fR
<command>nbd-server</command> will look for the
literal string '%s' in the
<option>exportname</option>, and replace it by the
- IP address of the connecting host in dotted-quad
- notation. The string that results from this
- transformation will be used as an absolute pathname
- that <command>nbd-server</command> will attempt to
- open. As an example, if a client connects from
- 192.168.1.100 and <option>exportname</option> is
- specified as <filename>/export/%s</filename>, then
- nbd-server will attempt to serve
+ address of the connecting host. The string that
+ results from this transformation will be used as an
+ absolute pathname that <command>nbd-server</command>
+ will attempt to open. As an example, if a client
+ connects from 192.168.1.100 and
+ <option>exportname</option> is specified as
+ <filename>/export/%s</filename>, then nbd-server
+ will attempt to serve
<filename>/export/192.168.1.100</filename>
</para>
</listitem>
open <filename>/export/192/168/1/100</filename>
instead.
</para>
+ <para>
+ Since there are no dots in most IPv6 addresses, the
+ effect of using this option when IPv6 is in use is
+ indistinguishable from the ipliteral option.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
<command>nbd-server</command> will try to open
<filename>/export/192.168.1.64/192.168.1.100</filename>.
</para>
+ <para>This option works as expected for IPv6.</para>
</listitem>
</varlistentry>
</variablelist>