13302Sagiri /* 23302Sagiri * CDDL HEADER START 33302Sagiri * 43302Sagiri * The contents of this file are subject to the terms of the 53302Sagiri * Common Development and Distribution License (the "License"). 63302Sagiri * You may not use this file except in compliance with the License. 73302Sagiri * 83302Sagiri * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93302Sagiri * or http://www.opensolaris.org/os/licensing. 103302Sagiri * See the License for the specific language governing permissions 113302Sagiri * and limitations under the License. 123302Sagiri * 133302Sagiri * When distributing Covered Code, include this CDDL HEADER in each 143302Sagiri * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153302Sagiri * If applicable, add the following below this CDDL HEADER, with the 163302Sagiri * fields enclosed by brackets "[]" replaced with your own identifying 173302Sagiri * information: Portions Copyright [yyyy] [name of copyright owner] 183302Sagiri * 193302Sagiri * CDDL HEADER END 203302Sagiri */ 213302Sagiri /* 22*4467Sagiri * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 233302Sagiri * Use is subject to license terms. 243302Sagiri */ 253302Sagiri 263302Sagiri #ifndef _RDSIB_SC_H 273302Sagiri #define _RDSIB_SC_H 283302Sagiri 293302Sagiri #pragma ident "%Z%%M% %I% %E% SMI" 303302Sagiri 313302Sagiri #ifdef __cplusplus 323302Sagiri extern "C" { 333302Sagiri #endif 343302Sagiri 353302Sagiri #include <netinet/in.h> 363302Sagiri #include <net/if.h> 373302Sagiri 383302Sagiri typedef struct rds_path_endpoint_s { 39*4467Sagiri uint32_t iftype; 403302Sagiri ipaddr_t ipaddr; 413302Sagiri ipaddr_t node_ipaddr; 42*4467Sagiri char *ifname; 433302Sagiri } rds_path_endpoint_t; 443302Sagiri 453302Sagiri typedef struct rds_path_s { 463302Sagiri rds_path_endpoint_t local; 473302Sagiri rds_path_endpoint_t remote; 483302Sagiri } rds_path_t; 493302Sagiri 50*4467Sagiri extern void rds_clif_name(char *name); 513302Sagiri extern void rds_path_up(struct rds_path_s *path); 523302Sagiri extern void rds_path_down(struct rds_path_s *path); 533302Sagiri 543302Sagiri #ifdef __cplusplus 553302Sagiri } 563302Sagiri #endif 573302Sagiri 583302Sagiri #endif /* _RDSIB_SC_H */ 59