{
    "content": [
        {
            "type": "text",
            "text": "# netconfig (man)\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\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **FILES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "netconfig",
        "section": "",
        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "netconfig — network configuration data base\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "/etc/netconfig\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The 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,\ntcp or 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\nconfig 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\nthe code first try udp6, and then udp.\n\ngetnetconfig(3) and associated functions will parse this file and return  structures  of  the\nfollowing 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",
                "subsections": []
            },
            "FILES": {
                "content": "/etc/netconfig\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "getnetconfig(3), getnetpath(3)\n\nDebian                                    November 17, 2000                             NETCONFIG(5)",
                "subsections": []
            }
        }
    }
}