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