4 //#include <features.h>
6 // XXX Should be in, or come from, the registry!!!
7 #define NETCONFIG "C:\\ReactOS\\System32\\drivers\\etc\\netconfig"
8 #define NETPATH "NETPATH"
11 char *nc_netid
; /* Network ID */
12 unsigned long nc_semantics
; /* Semantics (see below) */
13 unsigned long nc_flag
; /* Flags (see below) */
14 char *nc_protofmly
; /* Protocol family */
15 char *nc_proto
; /* Protocol name */
16 char *nc_device
; /* Network device pathname */
17 unsigned long nc_nlookups
; /* Number of directory lookup libs */
18 char **nc_lookups
; /* Names of the libraries */
19 unsigned long nc_unused
[9]; /* reserved */
23 struct netconfig
**nc_head
;
24 struct netconfig
**nc_curr
;
32 #define NC_TPI_COTS_ORD 3
38 #define NC_NOFLAG 0x00
39 #define NC_VISIBLE 0x01
40 #define NC_BROADCAST 0x02
45 #define NC_NOPROTOFMLY "-"
46 #define NC_LOOPBACK "loopback"
47 #define NC_INET "inet"
48 #define NC_INET6 "inet6"
49 #define NC_IMPLINK "implink"
51 #define NC_CHAOS "chaos"
54 #define NC_ECMA "ecma"
55 #define NC_DATAKIT "datakit"
56 #define NC_CCITT "ccitt"
58 #define NC_DECNET "decnet"
61 #define NC_HYLINK "hylink"
62 #define NC_APPLETALK "appletalk"
64 #define NC_IEEE802 "ieee802"
67 #define NC_OSINET "osinet"
68 #define NC_GOSIP "gosip"
73 #define NC_NOPROTO "-"
76 #define NC_ICMP "icmp"
87 extern void *setnetconfig (void);
88 extern struct netconfig
*getnetconfig (void *);
89 extern struct netconfig
*getnetconfigent (const char *);
90 extern void freenetconfigent (struct netconfig
*);
91 extern int endnetconfig (void *);
93 extern void *setnetpath (void);
94 extern struct netconfig
*getnetpath (void *);
95 extern int endnetpath (void *);
97 extern void nc_perror (const char *);
98 extern char *nc_sperror (void);
102 #endif /* _NETCONFIG_H_ */