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