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