{
    "content": [
        {
            "type": "text",
            "text": "# netconfig(5) (man)\n\n**Summary:** netconfig — network configuration data base\n\n**Synopsis:** /etc/netconfig\n\n## See Also\n\n- getnetconfig(3)\n- getnetpath(3)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (68 lines)\n- **FILES** (2 lines)\n- **SEE ALSO** (3 lines)\n\n## Full Content\n\n### NAME\n\nnetconfig — network configuration data base\n\n### SYNOPSIS\n\n/etc/netconfig\n\n### DESCRIPTION\n\nThe netconfig file defines a list of “transport names”, describing their semantics and proto‐\ncol.  In FreeBSD, this file is only used by the RPC library code.\n\nEntries have the following format:\n\nnetworkid semantics flags family protoname device libraries\n\nEntries consist of the following fields:\n\nnetworkid  The name of the transport described.\n\nsemantics   Describes the semantics of the transport.  This can be one of:\n\ntpiclts      Connectionless transport.\n\ntpicots      Connection-oriented transport\n\ntpicotsord  Connection-oriented, ordered transport.\n\ntpiraw       A raw connection.\n\nflags       This field is either blank (specified by “-”), or contains a “v”, meaning visible\nto the getnetconfig(3) function.\n\nfamily      The protocol family of the transport.  This is currently one of:\n\ninet6     The IPv6 (PFINET6) family of protocols.\n\ninet      The IPv4 (PFINET) family of protocols.\n\nloopback  The PFLOCAL protocol family.\n\nprotoname   The name of the protocol used for this transport.  Can currently be either udp, tcp\nor empty.\n\ndevice      This field is always empty in FreeBSD.\n\nlibraries   This field is always empty in FreeBSD.\n\nThe order of entries in this file will determine which transport will be preferred by the RPC\nlibrary code, given a match on a specified network type.  For example, if a sample network con‐\nfig file would look like this:\n\nudp6       tpiclts      v     inet6    udp     -       -\ntcp6       tpicotsord  v     inet6    tcp     -       -\nudp        tpiclts      v     inet     udp     -       -\ntcp        tpicotsord  v     inet     tcp     -       -\nrawip      tpiraw       -     inet      -      -       -\nlocal      tpicotsord  -     loopback  -      -       -\n\nthen using the network type udp in calls to the RPC library function (see rpc(3)) will make the\ncode first try udp6, and then udp.\n\ngetnetconfig(3) and associated functions will parse this file and return structures of the fol‐\nlowing format:\n\nstruct netconfig {\nchar *ncnetid;              /* Network ID */\nunsigned long ncsemantics;  /* Semantics (see below) */\nunsigned long ncflag;       /* Flags (see below) */\nchar *ncprotofmly;          /* Protocol family */\nchar *ncproto;              /* Protocol name */\nchar *ncdevice;             /* Network device pathname (unused) */\nunsigned long ncnlookups;   /* Number of lookup libs (unused) */\nchar nclookups;           /* Names of the libraries (unused) */\nunsigned long ncunused[9];  /* reserved */\n};\n\n### FILES\n\n/etc/netconfig\n\n### SEE ALSO\n\ngetnetconfig(3), getnetpath(3)\n\nBSD                            November 17, 2000                           BSD\n\n"
        }
    ],
    "structuredContent": {
        "command": "netconfig",
        "section": "5",
        "mode": "man",
        "summary": "netconfig — network configuration data base",
        "synopsis": "/etc/netconfig",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "getnetconfig",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/getnetconfig/3/json"
            },
            {
                "name": "getnetpath",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/getnetpath/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 68,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}