ibcm_arp.h revision bd670b35a010421b6e1a5536c34453a827007c81
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * CDDL HEADER START
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * The contents of this file are subject to the terms of the
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * Common Development and Distribution License (the "License").
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * You may not use this file except in compliance with the License.
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * See the License for the specific language governing permissions
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * and limitations under the License.
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * When distributing Covered Code, include this CDDL HEADER in each
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * If applicable, add the following below this CDDL HEADER, with the
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * fields enclosed by brackets "[]" replaced with your own identifying
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * information: Portions Copyright [yyyy] [name of copyright owner]
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * CDDL HEADER END
e11c3f44f531fdff80941ce57c065d2ae861cefcmeem * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * Use is subject to license terms.
015f8fff605f2fbd5fd0072e555576297804d57bhiremathextern "C" {
d3a82192edbbe93c6027629b50fd93fed5d0e1abShantkumar Hiremath gid.gid_prefix = (uint64_t)(((uint64_t)ntohl(ptr[0]) << 32) | \
d3a82192edbbe93c6027629b50fd93fed5d0e1abShantkumar Hiremath gid.gid_guid = (uint64_t)(((uint64_t)ntohl(ptr[0]) << 32) | \
015f8fff605f2fbd5fd0072e555576297804d57bhiremath * Path record wait queue node definition
015f8fff605f2fbd5fd0072e555576297804d57bhiremathtypedef struct ibcm_arp_prwqn {
015f8fff605f2fbd5fd0072e555576297804d57bhiremath ibt_ip_addr_t usrc_addr; /* user supplied src address */
015f8fff605f2fbd5fd0072e555576297804d57bhiremath ibt_ip_addr_t dst_addr; /* user supplied dest address */
015f8fff605f2fbd5fd0072e555576297804d57bhiremath ibt_ip_addr_t src_addr; /* rts's view of src address */
d3a82192edbbe93c6027629b50fd93fed5d0e1abShantkumar Hiremath ibt_ip_addr_t gateway; /* rts returned gateway addr */
d3a82192edbbe93c6027629b50fd93fed5d0e1abShantkumar Hiremath ibt_ip_addr_t netmask; /* rts returned netmask */
015f8fff605f2fbd5fd0072e555576297804d57bhiremathtypedef struct ibcm_arp_streams_s {
015f8fff605f2fbd5fd0072e555576297804d57bhiremathtypedef struct ibcm_arp_ip_s {
015f8fff605f2fbd5fd0072e555576297804d57bhiremathtypedef struct ibcm_arp_ibd_insts_s {
d3a82192edbbe93c6027629b50fd93fed5d0e1abShantkumar Hiremathibt_status_t ibcm_arp_get_ibaddr(ibt_ip_addr_t srcip, ibt_ip_addr_t destip,
015f8fff605f2fbd5fd0072e555576297804d57bhiremathibt_status_t ibcm_arp_get_srcip_plist(ibt_ip_path_attr_t *attr,
015f8fff605f2fbd5fd0072e555576297804d57bhiremath ibt_path_flags_t flags, ibtl_cm_port_list_t **list_p);
d3a82192edbbe93c6027629b50fd93fed5d0e1abShantkumar Hiremathibt_status_t ibcm_arp_get_ibds(ibcm_arp_ibd_insts_t *ibdp, sa_family_t fam);
015f8fff605f2fbd5fd0072e555576297804d57bhiremath#endif /* _SYS_IB_MGT_IBCM_IBCM_ARP_H */