williamr@2: /* $NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $ */ williamr@2: /* $FreeBSD: src/include/netconfig.h,v 1.3 2002/03/23 17:24:53 imp Exp $ */ williamr@2: williamr@2: williamr@2: #ifndef _NETCONFIG_H_ williamr@2: #define _NETCONFIG_H_ williamr@2: williamr@2: #include williamr@2: williamr@2: #define NETCONFIG "/etc/netconfig" williamr@2: #define NETPATH "NETPATH" williamr@2: williamr@2: struct netconfig { williamr@2: char *nc_netid; /* Network ID */ williamr@2: unsigned long nc_semantics; /* Semantics (see below) */ williamr@2: unsigned long nc_flag; /* Flags (see below) */ williamr@2: char *nc_protofmly; /* Protocol family */ williamr@2: char *nc_proto; /* Protocol name */ williamr@2: char *nc_device; /* Network device pathname */ williamr@2: unsigned long nc_nlookups; /* Number of directory lookup libs */ williamr@2: char **nc_lookups; /* Names of the libraries */ williamr@2: unsigned long nc_unused[9]; /* reserved */ williamr@2: }; williamr@2: williamr@2: typedef struct { williamr@2: struct netconfig **nc_head; williamr@2: struct netconfig **nc_curr; williamr@2: } NCONF_HANDLE; williamr@2: williamr@2: /* williamr@2: * nc_semantics values williamr@2: */ williamr@2: #define NC_TPI_CLTS 1 williamr@2: #define NC_TPI_COTS 2 williamr@2: #define NC_TPI_COTS_ORD 3 williamr@2: #define NC_TPI_RAW 4 williamr@2: williamr@2: /* williamr@2: * nc_flag values williamr@2: */ williamr@2: #define NC_NOFLAG 0x00 williamr@2: #define NC_VISIBLE 0x01 williamr@2: #define NC_BROADCAST 0x02 williamr@2: williamr@2: /* williamr@2: * nc_protofmly values williamr@2: */ williamr@2: #define NC_NOPROTOFMLY "-" williamr@2: #define NC_LOOPBACK "loopback" williamr@2: #define NC_INET "inet" williamr@2: #define NC_INET6 "inet6" williamr@2: #define NC_IMPLINK "implink" williamr@2: #define NC_PUP "pup" williamr@2: #define NC_CHAOS "chaos" williamr@2: #define NC_NS "ns" williamr@2: #define NC_NBS "nbs" williamr@2: #define NC_ECMA "ecma" williamr@2: #define NC_DATAKIT "datakit" williamr@2: #define NC_CCITT "ccitt" williamr@2: #define NC_SNA "sna" williamr@2: #define NC_DECNET "decnet" williamr@2: #define NC_DLI "dli" williamr@2: #define NC_LAT "lat" williamr@2: #define NC_HYLINK "hylink" williamr@2: #define NC_APPLETALK "appletalk" williamr@2: #define NC_NIT "nit" williamr@2: #define NC_IEEE802 "ieee802" williamr@2: #define NC_OSI "osi" williamr@2: #define NC_X25 "x25" williamr@2: #define NC_OSINET "osinet" williamr@2: #define NC_GOSIP "gosip" williamr@2: williamr@2: /* williamr@2: * nc_proto values williamr@2: */ williamr@2: #define NC_NOPROTO "-" williamr@2: #define NC_TCP "tcp" williamr@2: #define NC_UDP "udp" williamr@2: #define NC_ICMP "icmp" williamr@2: williamr@2: williamr@2: #endif /* _NETCONFIG_H_ */