networks

Section: File Formats (5)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

networks - ネットワーク名の情報  

説明

/etc/networks ファイルは、通常の ASCII ファイルで、よく使われる DARPA ネットワークとその分かりやすい名前を記載したファイルである。 各行が一つのネットワークを表し、以下の構造となっている。

name number aliases ...

where the fields are delimited by spaces or tabs. Empty lines are ignored. The hash character (#) indicates the start of a comment: this character, and the remaining characters up to the end of the current line, are ignored by library functions that process the file.

フィールドの説明は以下のとおり。

name
ネットワークの分かりやすい名前 (symbolic name)。 ネットワーク名には、ホワイトスペースとコメント文字以外の印字可能な文字を使うことができる。
number
The official number for this network in numbers-and-dots notation (see inet(3)). The trailing ".0" (for the host component of the network address) may be omitted.
aliases
そのネットワークの別名 (省略可能)。

This file is read by the route(8) and netstat(8) utilities. Only Class A, B, or C networks are supported, partitioned networks (i.e., network/26 or network/28) are not supported by this file.  

ファイル

/etc/networks
ネットワーク定義ファイル。
 

関連項目

getnetbyaddr(3), getnetbyname(3), getnetent(3), netstat(8), route(8)


 

Index

名前
説明
ファイル
関連項目

This document was created by man2html, using the manual pages.