6 #define NETCONFIG "/etc/netconfig"
7 #define NETPATH "NETPATH"
10 char *nc_netid; /* Network ID */
11 unsigned long nc_semantics; /* Semantics (see below) */
12 unsigned long nc_flag; /* Flags (see below) */
13 char *nc_protofmly; /* Protocol family */
14 char *nc_proto; /* Protocol name */
15 char *nc_device; /* Network device pathname */
16 unsigned long nc_nlookups; /* Number of directory lookup libs */
17 char **nc_lookups; /* Names of the libraries */
18 unsigned long nc_unused[9]; /* reserved */
22 struct netconfig **nc_head;
23 struct netconfig **nc_curr;
31 #define NC_TPI_COTS_ORD 3
37 #define NC_NOFLAG 0x00
38 #define NC_VISIBLE 0x01
39 #define NC_BROADCAST 0x02
44 #define NC_NOPROTOFMLY "-"
45 #define NC_LOOPBACK "loopback"
46 #define NC_INET "inet"
47 #define NC_INET6 "inet6"
48 #define NC_IMPLINK "implink"
50 #define NC_CHAOS "chaos"
53 #define NC_ECMA "ecma"
54 #define NC_DATAKIT "datakit"
55 #define NC_CCITT "ccitt"
57 #define NC_DECNET "decnet"
60 #define NC_HYLINK "hylink"
61 #define NC_APPLETALK "appletalk"
63 #define NC_IEEE802 "ieee802"
66 #define NC_OSINET "osinet"
67 #define NC_GOSIP "gosip"
72 #define NC_NOPROTO "-"
75 #define NC_ICMP "icmp"
79 extern void *setnetconfig (void);
80 extern struct netconfig *getnetconfig (void *);
81 extern struct netconfig *getnetconfigent (const char *);
82 extern void freenetconfigent (struct netconfig *);
83 extern int endnetconfig (void *);
85 extern void *setnetpath (void);
86 extern struct netconfig *getnetpath (void *);
87 extern int endnetpath (void *);
89 extern void nc_perror (const char *);
90 extern char *nc_sperror (void);
94 #endif /* _NETCONFIG_H_ */