1 /* $NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $ */
10 #define NETCONFIG "/etc/netconfig"
11 #define NETPATH "NETPATH"
14 char *nc_netid; /* Network ID */
15 unsigned long nc_semantics; /* Semantics (see below) */
16 unsigned long nc_flag; /* Flags (see below) */
17 char *nc_protofmly; /* Protocol family */
18 char *nc_proto; /* Protocol name */
19 char *nc_device; /* Network device pathname */
20 unsigned long nc_nlookups; /* Number of directory lookup libs */
21 char **nc_lookups; /* Names of the libraries */
22 unsigned long nc_unused[9]; /* reserved */
26 struct netconfig **nc_head;
27 struct netconfig **nc_curr;
35 #define NC_TPI_COTS_ORD 3
41 #define NC_NOFLAG 0x00
42 #define NC_VISIBLE 0x01
43 #define NC_BROADCAST 0x02
48 #define NC_NOPROTOFMLY "-"
49 #define NC_LOOPBACK "loopback"
50 #define NC_INET "inet"
51 #define NC_INET6 "inet6"
52 #define NC_IMPLINK "implink"
54 #define NC_CHAOS "chaos"
57 #define NC_ECMA "ecma"
58 #define NC_DATAKIT "datakit"
59 #define NC_CCITT "ccitt"
61 #define NC_DECNET "decnet"
64 #define NC_HYLINK "hylink"
65 #define NC_APPLETALK "appletalk"
67 #define NC_IEEE802 "ieee802"
70 #define NC_OSINET "osinet"
71 #define NC_GOSIP "gosip"
76 #define NC_NOPROTO "-"
79 #define NC_ICMP "icmp"
82 void *setnetconfig __P((void));
83 struct netconfig *getnetconfig __P((void *));
84 struct netconfig *getnetconfigent __P((const char *));
85 void freenetconfigent __P((struct netconfig *));
86 int endnetconfig __P((void *));
88 void *setnetpath __P((void));
89 struct netconfig *getnetpath __P((void *));
90 int endnetpath(void *);
92 void nc_perror __P((const char *));
93 char *nc_sperror __P((void));
96 #endif /* _NETCONFIG_H_ */