NETCONFIG(5)
โจ NETCONFIG(5) โ File Formats Manual โจ
Okay so the manual name is netconfig, and it's the network configuration data base ๐ Basically it's a little list of "transport names" that describes what each one means and how it works ๐ฆ
๐ธ SYNOPSIS ๐ธ
/etc/netconfig
๐ DESCRIPTION ๐
Okay bestie, so the netconfig file defines a list of "transport names", describing their semantics and protocol. In FreeBSD, this file is only used by the RPC library code ๐ซถ
Entries have the following format:
network_id semantics flags family protoname device libraries
Entries consist of the following fields:
network_idโ The name of the transport described. Iconic naming, no notes ๐semanticsโ Describes the semantics of the transport. This can be one of:tpi_cltsโ Connectionless transport.tpi_cotsโ Connection-oriented transporttpi_cots_ordโ Connection-oriented, ordered transport.tpi_rawโ A raw connection.
flagsโ This field is either blank (specified by "-"), or contains a "v", meaning visible to thegetnetconfig(3)function โจfamilyโ The protocol family of the transport. This is currently one of:inet6โ The IPv6 (PF_INET6) family of protocols.inetโ The IPv4 (PF_INET) family of protocols.loopbackโ ThePF_LOCALprotocol family.
protonameโ The name of the protocol used for this transport. Can currently be eitherudp,tcpor empty ๐deviceโ This field is always empty in FreeBSD. ๐librariesโ This field is always empty in FreeBSD. ๐
The order of entries in this file will determine which transport will be preferred by the RPC library code, given a match on a specified network type ๐ For example, if a sample network config file would look like this:
udp6 tpi_clts v inet6 udp - -
tcp6 tpi_cots_ord v inet6 tcp - -
udp tpi_clts v inet udp - -
tcp tpi_cots_ord v inet tcp - -
rawip tpi_raw - inet - - -
local tpi_cots_ord - loopback - - -
then using the network type udp in calls to the RPC library function (see rpc(3)) will make the code first try udp6, and then udp ๐ฆ
getnetconfig(3) and associated functions will parse this file and return structures of the following format:
struct netconfig {
char *nc_netid; /* Network ID */
unsigned long nc_semantics; /* Semantics (see below) */
unsigned long nc_flag; /* Flags (see below) */
char *nc_protofmly; /* Protocol family */
char *nc_proto; /* Protocol name */
char *nc_device; /* Network device pathname (unused) */
unsigned long nc_nlookups; /* Number of lookup libs (unused) */
char **nc_lookups; /* Names of the libraries (unused) */
unsigned long nc_unused[9]; /* reserved */
};
๐ FILES ๐
/etc/netconfig
๐ฆ SEE ALSO ๐ฆ
getnetconfig(3), getnetpath(3)
Bestie, that's the whole tea โ๐ Source: Debian, dated November 17, 2000, and the manual is tagged NETCONFIG(5) so you can find it again ๐งโจ
๐ฆ where this page comes from
- alpine 3.22: libtirpc-doc 1.3.5-r0 ยท BSD-3-Clause
- alpine 3.23: libtirpc-doc 1.3.5-r1 ยท BSD-3-Clause
- alpine 3.24: libtirpc-doc 1.3.5-r1 ยท BSD-3-Clause
- arch rolling: libtirpc 1.3.8-1 ยท SISSL AND BSD-3-Clause
- centos-stream 10: libtirpc-devel 1.3.5-1.el10 ยท SISSL AND BSD-3-Clause
- centos-stream 9: libtirpc-devel 1.3.3-9.el9 ยท SISSL and BSD
- centos-stream 9: libtirpc-devel 1.3.3-9.el9 ยท SISSL and BSD
- debian bookworm: libtirpc-common 1.3.3+ds-1 ยท BSD-3-Clause
- debian trixie: libtirpc-common 1.3.6+ds-1 ยท BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-0.fc43 ยท SISSL AND BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-0.fc43 ยท SISSL AND BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-1.rc1.fc43 ยท SISSL AND BSD-3-Clause
- fedora 43: libtirpc-devel 1.3.7-1.rc1.fc43 ยท SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.7-2.fc44 ยท SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.7-2.fc44 ยท SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.8-0.fc44 ยท SISSL AND BSD-3-Clause
- fedora 44: libtirpc-devel 1.3.8-0.fc44 ยท SISSL AND BSD-3-Clause
- nixos 26.05: libtirpc 1.3.7
- nixpkgs unstable: libtirpc 1.3.7
- opensuse-leap 16.0: libtirpc-netconfig 1.3.6-160000.2.2 ยท BSD-3-Clause
- opensuse-leap 16.0: libtirpc-netconfig 1.3.6-160000.2.2 ยท BSD-3-Clause
- opensuse-leap 16.0: libtirpc-netconfig 1.3.6-160000.2.2 ยท BSD-3-Clause
- opensuse-leap 16.0: libtirpc-netconfig 1.3.6-160000.2.2 ยท BSD-3-Clause
- ubuntu jammy: libtirpc-common 1.3.2-2build1 ยท BSD-3-Clause
- ubuntu jammy: libtirpc-common 1.3.2-2ubuntu0.1 ยท BSD-3-Clause
- ubuntu noble: libtirpc-common 1.3.4+ds-1.1build1 ยท BSD-3-Clause
- ubuntu questing: libtirpc-common 1.3.6+ds-1 ยท BSD-3-Clause
- ubuntu resolute: libtirpc-common 1.3.7-0.1 ยท BSD-3-Clause
- ubuntu stonking: libtirpc-common 1.3.7+ds-1 ยท BSD-3-Clause
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms