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