1 /* $NetBSD: netconfig.h,v 1.1 2000/06/02 22:57:54 fvdl Exp $ */
2 /* $FreeBSD: src/include/netconfig.h,v 1.3 2002/03/23 17:24:53 imp Exp $ */
11 #define NETCONFIG "/etc/netconfig"
12 #define NETPATH "NETPATH"
15 char *nc_netid
; /* Network ID */
16 unsigned long nc_semantics
; /* Semantics (see below) */
17 unsigned long nc_flag
; /* Flags (see below) */
18 char *nc_protofmly
; /* Protocol family */
19 char *nc_proto
; /* Protocol name */
20 char *nc_device
; /* Network device pathname */
21 unsigned long nc_nlookups
; /* Number of directory lookup libs */
22 char **nc_lookups
; /* Names of the libraries */
23 unsigned long nc_unused
[9]; /* reserved */
27 struct netconfig
**nc_head
;
28 struct netconfig
**nc_curr
;
36 #define NC_TPI_COTS_ORD 3
42 #define NC_NOFLAG 0x00
43 #define NC_VISIBLE 0x01
44 #define NC_BROADCAST 0x02
49 #define NC_NOPROTOFMLY "-"
50 #define NC_LOOPBACK "loopback"
51 #define NC_INET "inet"
52 #define NC_INET6 "inet6"
53 #define NC_IMPLINK "implink"
55 #define NC_CHAOS "chaos"
58 #define NC_ECMA "ecma"
59 #define NC_DATAKIT "datakit"
60 #define NC_CCITT "ccitt"
62 #define NC_DECNET "decnet"
65 #define NC_HYLINK "hylink"
66 #define NC_APPLETALK "appletalk"
68 #define NC_IEEE802 "ieee802"
71 #define NC_OSINET "osinet"
72 #define NC_GOSIP "gosip"
77 #define NC_NOPROTO "-"
80 #define NC_ICMP "icmp"
83 void *setnetconfig(void);
84 struct netconfig
*getnetconfig(void *);
85 struct netconfig
*getnetconfigent(const char *);
86 void freenetconfigent(struct netconfig
*);
87 int endnetconfig(void *);
89 void *setnetpath(void);
90 struct netconfig
*getnetpath(void *);
91 int endnetpath(void *);
93 void nc_perror(const char *);
94 char *nc_sperror(void);
97 #endif /* _NETCONFIG_H_ */