xref: /onnv-gate/usr/src/uts/common/sys/ib/clients/rdsv3/rdsv3_sc.h (revision 12198:4db936bda957)
1*12198SEiji.Ota@Sun.COM /*
2*12198SEiji.Ota@Sun.COM  * CDDL HEADER START
3*12198SEiji.Ota@Sun.COM  *
4*12198SEiji.Ota@Sun.COM  * The contents of this file are subject to the terms of the
5*12198SEiji.Ota@Sun.COM  * Common Development and Distribution License (the "License").
6*12198SEiji.Ota@Sun.COM  * You may not use this file except in compliance with the License.
7*12198SEiji.Ota@Sun.COM  *
8*12198SEiji.Ota@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*12198SEiji.Ota@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*12198SEiji.Ota@Sun.COM  * See the License for the specific language governing permissions
11*12198SEiji.Ota@Sun.COM  * and limitations under the License.
12*12198SEiji.Ota@Sun.COM  *
13*12198SEiji.Ota@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*12198SEiji.Ota@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*12198SEiji.Ota@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*12198SEiji.Ota@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*12198SEiji.Ota@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*12198SEiji.Ota@Sun.COM  *
19*12198SEiji.Ota@Sun.COM  * CDDL HEADER END
20*12198SEiji.Ota@Sun.COM  */
21*12198SEiji.Ota@Sun.COM /*
22*12198SEiji.Ota@Sun.COM  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23*12198SEiji.Ota@Sun.COM  */
24*12198SEiji.Ota@Sun.COM 
25*12198SEiji.Ota@Sun.COM #ifndef _RDSV3_SC_H
26*12198SEiji.Ota@Sun.COM #define	_RDSV3_SC_H
27*12198SEiji.Ota@Sun.COM 
28*12198SEiji.Ota@Sun.COM #ifdef __cplusplus
29*12198SEiji.Ota@Sun.COM extern "C" {
30*12198SEiji.Ota@Sun.COM #endif
31*12198SEiji.Ota@Sun.COM 
32*12198SEiji.Ota@Sun.COM #include <netinet/in.h>
33*12198SEiji.Ota@Sun.COM #include <net/if.h>
34*12198SEiji.Ota@Sun.COM 
35*12198SEiji.Ota@Sun.COM typedef struct rds_path_endpoint_s {
36*12198SEiji.Ota@Sun.COM 	uint32_t	iftype;
37*12198SEiji.Ota@Sun.COM 	ipaddr_t	ipaddr;
38*12198SEiji.Ota@Sun.COM 	ipaddr_t	node_ipaddr;
39*12198SEiji.Ota@Sun.COM 	char		*ifname;
40*12198SEiji.Ota@Sun.COM } rds_path_endpoint_t;
41*12198SEiji.Ota@Sun.COM 
42*12198SEiji.Ota@Sun.COM typedef struct rds_path_s {
43*12198SEiji.Ota@Sun.COM 	rds_path_endpoint_t	local;
44*12198SEiji.Ota@Sun.COM 	rds_path_endpoint_t	remote;
45*12198SEiji.Ota@Sun.COM } rds_path_t;
46*12198SEiji.Ota@Sun.COM 
47*12198SEiji.Ota@Sun.COM extern void rds_clif_name(char *name);
48*12198SEiji.Ota@Sun.COM extern void rds_path_up(struct rds_path_s *path);
49*12198SEiji.Ota@Sun.COM extern void rds_path_down(struct rds_path_s *path);
50*12198SEiji.Ota@Sun.COM 
51*12198SEiji.Ota@Sun.COM #ifdef __cplusplus
52*12198SEiji.Ota@Sun.COM }
53*12198SEiji.Ota@Sun.COM #endif
54*12198SEiji.Ota@Sun.COM 
55*12198SEiji.Ota@Sun.COM #endif	/* _RDSV3_SC_H */
56