7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
24
25
26 /*
27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31 #ifndef _SYS_NETCONFIG_H
32 #define _SYS_NETCONFIG_H
33
34 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4 */
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #define NETCONFIG "/etc/netconfig"
41 #define NETPATH "NETPATH"
42
43 struct netconfig {
44 char *nc_netid; /* network identifier */
45 unsigned int nc_semantics; /* defined below */
46 unsigned int nc_flag; /* defined below */
47 char *nc_protofmly; /* protocol family name */
48 char *nc_proto; /* protocol name */
49 char *nc_device; /* device name for network id */
50 unsigned int nc_nlookups; /* # of entries in nc_lookups */
51 char **nc_lookups; /* list of lookup directories */
52 unsigned int nc_unused[8]; /* borrowed for lockd etc. */
53 };
54
55 typedef struct {
120 * This is a PRIVATE interface to be used by Solaris kRPC only.
121 */
122 #define NC_RDMA "rdma"
123
124 /*
125 * Values for nc_proto
126 */
127
128 #define NC_NOPROTO "-"
129 #define NC_TCP "tcp"
130 #define NC_UDP "udp"
131 #define NC_ICMP "icmp"
132
133 /*
134 * Values for nc_proto for "rdma" protofmly
135 */
136 #define NC_KVIPL "kvipl"
137 #define NC_IBTF "ibtf"
138 #define NC_KDAPL "kdapl"
139
140 #if defined(__STDC__)
141
142 extern void *setnetconfig(void);
143 extern int endnetconfig(void *);
144 extern struct netconfig *getnetconfig(void *);
145 extern struct netconfig *getnetconfigent(const char *);
146 extern void freenetconfigent(struct netconfig *);
147 extern void *setnetpath(void);
148 extern int endnetpath(void *);
149 extern struct netconfig *getnetpath(void *);
150 extern void nc_perror(const char *);
151 extern char *nc_sperror(void);
152
153 #else /* __STDC__ */
154
155 extern void *setnetconfig();
156 extern int endnetconfig();
157 extern struct netconfig *getnetconfig();
158 extern struct netconfig *getnetconfigent();
159 extern void freenetconfigent();
160 extern void *setnetpath();
161 extern int endnetpath();
162 extern struct netconfig *getnetpath();
163 extern void nc_perror();
164 extern char *nc_sperror();
165
166 #endif /* __STDC__ */
167
168 #ifdef __cplusplus
169 }
170 #endif
171
172 #endif /* _SYS_NETCONFIG_H */
|
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
24
25
26 /*
27 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 *
29 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 */
32
33 #ifndef _SYS_NETCONFIG_H
34 #define _SYS_NETCONFIG_H
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #define NETCONFIG "/etc/netconfig"
41 #define NETPATH "NETPATH"
42
43 struct netconfig {
44 char *nc_netid; /* network identifier */
45 unsigned int nc_semantics; /* defined below */
46 unsigned int nc_flag; /* defined below */
47 char *nc_protofmly; /* protocol family name */
48 char *nc_proto; /* protocol name */
49 char *nc_device; /* device name for network id */
50 unsigned int nc_nlookups; /* # of entries in nc_lookups */
51 char **nc_lookups; /* list of lookup directories */
52 unsigned int nc_unused[8]; /* borrowed for lockd etc. */
53 };
54
55 typedef struct {
120 * This is a PRIVATE interface to be used by Solaris kRPC only.
121 */
122 #define NC_RDMA "rdma"
123
124 /*
125 * Values for nc_proto
126 */
127
128 #define NC_NOPROTO "-"
129 #define NC_TCP "tcp"
130 #define NC_UDP "udp"
131 #define NC_ICMP "icmp"
132
133 /*
134 * Values for nc_proto for "rdma" protofmly
135 */
136 #define NC_KVIPL "kvipl"
137 #define NC_IBTF "ibtf"
138 #define NC_KDAPL "kdapl"
139
140 extern void *setnetconfig(void);
141 extern int endnetconfig(void *);
142 extern struct netconfig *getnetconfig(void *);
143 extern struct netconfig *getnetconfigent(const char *);
144 extern void freenetconfigent(struct netconfig *);
145 extern void *setnetpath(void);
146 extern int endnetpath(void *);
147 extern struct netconfig *getnetpath(void *);
148 extern void nc_perror(const char *);
149 extern char *nc_sperror(void);
150
151 #ifdef __cplusplus
152 }
153 #endif
154
155 #endif /* _SYS_NETCONFIG_H */
|