gai.conf.5: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-02-09 23:03:46 +01:00
parent d97d06f750
commit 5f86385e27
1 changed files with 40 additions and 34 deletions

View File

@ -16,7 +16,7 @@
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
.\"
.\" Author: Ulrich Drepper <drepper@redhat.com>
.TH gai.conf 5 "May 2006" gai.conf
.TH gai.conf 5 2013-02-13 ""Linux" "Linux Programmer's Manual"
.SH NAME
gai.conf \- getaddrinfo(3) configuration file
@ -24,54 +24,63 @@ gai.conf \- getaddrinfo(3) configuration file
.SH DESCRIPTION
A call to
.BR getaddrinfo (3)
might return multiple answers. According to RFC 3484 these answers must
be sorted so that the answer with the highest success rate is first in
the list. The RFC provides and algorithm for the sorting. The static
rules are not always adequate, though. For this reason the RFC also
requires that system administrators get the chance to dynamically change
the sorting. For the glibc implementation this can be achieved with
the
.BR /etc/gai.conf
might return multiple answers.
According to RFC\ 3484 these answers must be sorted so that
the answer with the highest success rate is first in the list.
The RFC provides an algorithm for the sorting.
The static rules are not always adequate, though.
For this reason,
the RFC also requires that system administrators should have the possibility
to dynamically change the sorting.
For the glibc implementation, this can be achieved with the
.IR /etc/gai.conf
file.
.PP
Each line in the configuration file consists of a keyword and its
parameters. White spaces in any place are ignored. Lines starting
with `#' are comments and are ignored.
Each line in the configuration file consists of a keyword and its parameters.
White spaces in any place are ignored.
Lines starting with \(aq#\(aq are comments and are ignored.
.PP
The keywords currently recognized are:
.TP
\fBlabel\fR \fInetmask\fR \fIprecedence\fR
The value is added to the label table used in the RFC 3484 sorting.
The value is added to the label table used in the RFC\ 3484 sorting.
If any \fBlabel\fR definition is present in the configuration file
is present the default table is not used. All the label definitions
is present, the default table is not used.
All the label definitions
of the default table which are to be maintained have to be duplicated.
Following the keyword the line has to contain a network mask and a label
value.
Following the keyword,
the line has to contain a network mask and a label value.
.TP
\fBprecedence\fR \fInetmask\fR \fIprecedence\fR
This keyword is similar to \fBlabel\fR but instead the value is added
to the precedence table as specified in RFC 3484. Once again, the
This keyword is similar to \fBlabel\fR, but instead the value is added
to the precedence table as specified in RFC\ 3484.
Once again, the
presence of a single \fBprecedence\fR line in the configuration file
causes the default table to not be used.
.TP
\fBreload\fR <\fByes\fR|\fBno\fR>
This keyword control whether a process checks whether the configuration
file has been changes since the last time it was read. If the value is
`\fByes\fR' the file is re-read. This might cause problems in multi-threaded
applications and is generally a bad idea. The default is `\fBno\fR'.
This keyword controls whether a process checks whether the configuration
file has been changed since the last time it was read.
If the value is
"\fByes\fR" the file is re-read.
This might cause problems in multi-threaded
applications and is generally a bad idea.
The default is "\fBno\fR".
.TP
\fBscopev4\fR \fImask\fR \fIvalue\fR
Add another rule to the RFC 3484 scope table for IPv4 address.
By default the scope IDs described in section 3.2 in
RFC 3438 are used.
Add another rule to the RFC\ 3484 scope table for IPv4 address.
By default, the scope IDs described in section 3.2 in RFC\ 3438 are used.
Changing these defaults should hardly ever be necessary.
.SH FILES
\fI/etc/gai.conf\fR
.SH EXAMPLE
The default table according to RFC 3484 would be specified with the
The default table according to RFC\ 3484 would be specified with the
following configuration file:
.nf
@ -85,14 +94,11 @@ precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 10
.fi
.SH FILES
\fI/etc/gai.conf\fR
.SH AUTHOR
Ulrich Drepper <drepper@redhat.com>
.\" .SH AUTHOR
.\" Ulrich Drepper <drepper@redhat.com>
.\"
.SH SEE ALSO
.BR getaddrinfo(3),
RFC 3484
RFC\ 3484