--- /dev/null
+/*
+ * Copyright (c) 2005 SilverStorm Technologies. All rights reserved.
+ * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
+ *
+ * This software is available to you under the OpenIB.org BSD license
+ * below:
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer.
+ *
+ * - Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * $Id: al_cm_conn.h 33 2005-07-11 19:51:17Z ftillier $
+ */
+
+#if !defined(__IB_AL_CM_RDMA_H__)
+#define __IB_AL_CM_RDMA_H__
+
+#define IB_REQ_CM_RDMA_PDATA_SIZE 56
+
+typedef struct _cm_rdma_req
+{
+ ib_net32_t src_port : 16;
+ ib_net32_t res : 4;
+ ib_net32_t ipv : 4;
+ ib_net32_t min_ver : 4;
+ ib_net32_t max_ver : 4;
+ ib_net32_t src_ip_addr[4];
+ ib_net32_t dst_ip_addr[4];
+ uint8_t pdata[IB_REQ_CM_RDMA_PDATA_SIZE];
+
+} PACK_SUFFIX cm_rdma_req_t;
+
+#define IB_REQ_CM_RDMA_SID_PREFIX 0x0000000001000000
+#define IB_REQ_CM_RDMA_SID_IP_PROT 252 /* a voluntary value */
+#define IB_REQ_CM_RDMA_SID_BASE (IB_REQ_CM_RDMA_SID_PREFIX + (IB_REQ_CM_RDMA_SID_IP_PROT<<16))
+
+#endif