BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.sbin / htable / htable.8
index 50707e7..6af2e1a 100644 (file)
-.\" Copyright (c) 1983 The Regents of the University of California.
+.\" Copyright (c) 1983, 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
 .\" All rights reserved.
 .\"
-.\" Redistribution and use in source and binary forms are permitted provided
-.\" that: (1) source distributions retain this entire copyright notice and
-.\" comment, and (2) distributions including binaries display the following
-.\" acknowledgement:  ``This product includes software developed by the
-.\" University of California, Berkeley and its contributors'' in the
-.\" documentation or other materials provided with the distribution and in
-.\" all advertising materials mentioning features or use of this software.
-.\" Neither the name of the University nor the names of its contributors may
-.\" be used to endorse or promote products derived from this software without
-.\" specific prior written permission.
-.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
-.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.\"    @(#)htable.8    6.5 (Berkeley) 6/24/90
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
 .\"
 .\"
-.TH HTABLE 8 "June 24, 1990"
-.UC 5
-.SH NAME
-htable \- convert NIC standard format host tables
-.SH SYNOPSIS
-.B htable
-[
-.B \-c
-.I connected-nets
-] [
-.B \-l
-.I local-nets
-]
-.I file
-.SH DESCRIPTION
-.I Htable
+.\"     @(#)htable.8   6.6 (Berkeley) 3/16/91
+.\"
+.Dd March 16, 1991
+.Dt HTABLE 8
+.Os BSD 4.2
+.Sh NAME
+.Nm htable
+.Nd convert
+.Tn NIC
+standard format host tables
+.Sh SYNOPSIS
+.Nm htable
+.Op Fl c Ar connected-nets
+.Op Fl l Ar local-nets
+.Ar file
+.Sh DESCRIPTION
+.Nm Htable
 is used to convert host files in the format specified
 is used to convert host files in the format specified
-in Internet RFC 810 to the format used by the network
+in Internet
+.Tn RFC
+810 to the format used by the network
 library routines.  Three files are created as a result
 of running 
 library routines.  Three files are created as a result
 of running 
-.IR htable :
-.IR hosts ,
-.IR networks ,
+.Nm htable :
+.Pa hosts ,
+.Pa networks ,
 and
 and
-.IR gateways .
+.Pa gateways .
 The 
 The 
-.I hosts
+.Xr hosts
 file may be used by the 
 file may be used by the 
-.IR gethostbyname (3N)
+.Xr gethostbyname 3
 routines in mapping host names to addresses
 if the nameserver,
 routines in mapping host names to addresses
 if the nameserver,
-.IR named (8),
+.Xr named 8 ,
 is not used.
 The
 is not used.
 The
-.I networks
+.Pa networks
 file is used by the
 file is used by the
-.IR getnetent (3N)
+.Xr getnetent 3
 routines in mapping network names to numbers.
 The
 routines in mapping network names to numbers.
 The
-.I gateways
+.Pa gateways
 file may be used by the routing daemon
 file may be used by the routing daemon
-in identifying ``passive'' Internet gateways;
+in identifying
+.Dq passive
+Internet gateways;
 see
 see
-.IR routed (8C)
+.Xr routed 8
 for an explanation.
 for an explanation.
-.PP
-If any of the files
-.IR localhosts ,
-.IR localnetworks ,
-or
-.I localgateways
-are present in the current directory,
-the file's contents is prepended to the
-output file.
-Of these, only the gateways file is interpreted.
-This allows sites to maintain local aliases and
-entries which are not normally present in the
-master database.
-Only one gateway to each network will be placed in the gateways file;
-a gateway listed in the localgateways file will override any in the
-input file.
-.PP
+.Pp
+Options available for
+.Nm htable :
+.Bl -tag -width Ds
+.It Fl c Ar connected-nets
 If the gateways file is to be used,
 If the gateways file is to be used,
-a list of networks to which the host is directly connected
-is specified with the
-.B \-c
-flag.
+.Ar connected-nets
+is a list of networks to which the host is directly connected.
 The networks, separated by commas,
 may be given by name or in Internet-standard dot notation,
 The networks, separated by commas,
 may be given by name or in Internet-standard dot notation,
-e.g.
-.B \-c
-arpanet,128.32,local-ether-net.
-.I Htable
+for example:
+.Bd -literal -offset indent
+\-c arpanet,128.32,local-ether-net.
+.Ed
+.Pp
+.Nm Htable
 only includes gateways
 which are directly connected to one of the networks specified,
 or which can be reached from another gateway on a connected net.
 only includes gateways
 which are directly connected to one of the networks specified,
 or which can be reached from another gateway on a connected net.
-.PP
+.It Fl l Ar local-nets
 If the
 If the
-.B \-l
+.Fl l
 option is given with a list of networks (in the same format as for
 option is given with a list of networks (in the same format as for
-.BR \-c ),
+.Fl c ) ,
 these networks will be treated as ``local,''
 and information about hosts on local networks is
 taken only from the localhosts file.
 Entries for local hosts from the main database will be omitted.
 This allows the localhosts file to completely override
 any entries in the input file.
 these networks will be treated as ``local,''
 and information about hosts on local networks is
 taken only from the localhosts file.
 Entries for local hosts from the main database will be omitted.
 This allows the localhosts file to completely override
 any entries in the input file.
-.PP
-.I Htable
+.El
+.Pp
+If any of the files
+.Pa localhosts ,
+.Pa localnetworks ,
+or
+.Pa localgateways
+are present in the current directory,
+the file's contents is prepended to the
+output file.
+Of these, only the gateways file is interpreted.
+This allows sites to maintain local aliases and
+entries which are not normally present in the
+master database.
+Only one gateway to each network will be placed in the gateways file;
+a gateway listed in the localgateways file will override any in the
+input file.
+.Pp
+.Nm Htable
 is best used in conjunction with the
 is best used in conjunction with the
-.IR gettable (8)
-program which retrieves the NIC database from a host.
-.SH "SEE ALSO"
-netintro(4), gettable(8), named(8)
-.SH BUGS
+.Xr gettable 8
+program which retrieves the
+.Tn NIC
+database from a host.
+.Sh SEE ALSO
+.Xr netintro 4 ,
+.Xr gettable 8 ,
+.Xr named 8
+.Sh BUGS
 If the name-domain system provided network name mapping well as host
 name mapping,
 If the name-domain system provided network name mapping well as host
 name mapping,
-.I htable
+.Nm htable
 would no longer be needed.
 would no longer be needed.
+.Sh HISTORY
+The
+.Nm
+command appeared in
+.Bx 4.2 .