Make LCALL like LJMP and avoid segmentation faults parsing segments (!).
[unix-history] / usr / src / old / htable / htable.8
... / ...
CommitLineData
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\" @(#)htable.8 6.5 (Berkeley) %G%
7.\"
8.TH HTABLE 8 ""
9.UC 5
10.SH NAME
11htable \- convert NIC standard format host tables
12.SH SYNOPSIS
13.B htable
14[
15.B \-c
16.I connected-nets
17] [
18.B \-l
19.I local-nets
20]
21.I file
22.SH DESCRIPTION
23.I Htable
24is used to convert host files in the format specified
25in Internet RFC 810 to the format used by the network
26library routines. Three files are created as a result
27of running
28.IR htable :
29.IR hosts ,
30.IR networks ,
31and
32.IR gateways .
33The
34.I hosts
35file may be used by the
36.IR gethostbyname (3N)
37routines in mapping host names to addresses
38if the nameserver,
39.IR named (8),
40is not used.
41The
42.I networks
43file is used by the
44.IR getnetent (3N)
45routines in mapping network names to numbers.
46The
47.I gateways
48file may be used by the routing daemon
49in identifying ``passive'' Internet gateways;
50see
51.IR routed (8C)
52for an explanation.
53.PP
54If any of the files
55.IR localhosts ,
56.IR localnetworks ,
57or
58.I localgateways
59are present in the current directory,
60the file's contents is prepended to the
61output file.
62Of these, only the gateways file is interpreted.
63This allows sites to maintain local aliases and
64entries which are not normally present in the
65master database.
66Only one gateway to each network will be placed in the gateways file;
67a gateway listed in the localgateways file will override any in the
68input file.
69.PP
70If the gateways file is to be used,
71a list of networks to which the host is directly connected
72is specified with the
73.B \-c
74flag.
75The networks, separated by commas,
76may be given by name or in Internet-standard dot notation,
77e.g.
78.B \-c
79arpanet,128.32,local-ether-net.
80.I Htable
81only includes gateways
82which are directly connected to one of the networks specified,
83or which can be reached from another gateway on a connected net.
84.PP
85If the
86.B \-l
87option is given with a list of networks (in the same format as for
88.BR \-c ),
89these networks will be treated as ``local,''
90and information about hosts on local networks is
91taken only from the localhosts file.
92Entries for local hosts from the main database will be omitted.
93This allows the localhosts file to completely override
94any entries in the input file.
95.PP
96.I Htable
97is best used in conjunction with the
98.IR gettable (8)
99program which retrieves the NIC database from a host.
100.SH "SEE ALSO"
101netintro(4), gettable(8), named(8)
102.SH BUGS
103If the name-domain system provided network name mapping well as host
104name mapping,
105.I htable
106would no longer be needed.