iw_cm.h (237263) | iw_cm.h (278886) |
---|---|
1/* 2 * Copyright (c) 2005 Network Appliance, Inc. All rights reserved. 3 * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 32 unchanged lines hidden (view full) --- 41enum iw_cm_event_type { 42 IW_CM_EVENT_CONNECT_REQUEST = 1, /* connect request received */ 43 IW_CM_EVENT_CONNECT_REPLY, /* reply from active connect request */ 44 IW_CM_EVENT_ESTABLISHED, /* passive side accept successful */ 45 IW_CM_EVENT_DISCONNECT, /* orderly shutdown */ 46 IW_CM_EVENT_CLOSE /* close complete */ 47}; 48 | 1/* 2 * Copyright (c) 2005 Network Appliance, Inc. All rights reserved. 3 * Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 32 unchanged lines hidden (view full) --- 41enum iw_cm_event_type { 42 IW_CM_EVENT_CONNECT_REQUEST = 1, /* connect request received */ 43 IW_CM_EVENT_CONNECT_REPLY, /* reply from active connect request */ 44 IW_CM_EVENT_ESTABLISHED, /* passive side accept successful */ 45 IW_CM_EVENT_DISCONNECT, /* orderly shutdown */ 46 IW_CM_EVENT_CLOSE /* close complete */ 47}; 48 |
49enum iw_cm_event_status { 50 IW_CM_EVENT_STATUS_OK = 0, /* request successful */ 51 IW_CM_EVENT_STATUS_ACCEPTED = 0, /* connect request accepted */ 52 IW_CM_EVENT_STATUS_REJECTED, /* connect request rejected */ 53 IW_CM_EVENT_STATUS_TIMEOUT, /* the operation timed out */ 54 IW_CM_EVENT_STATUS_RESET, /* reset from remote peer */ 55 IW_CM_EVENT_STATUS_EINVAL, /* asynchronous failure for bad parm */ 56}; 57 | |
58struct iw_cm_event { 59 enum iw_cm_event_type event; | 49struct iw_cm_event { 50 enum iw_cm_event_type event; |
60 enum iw_cm_event_status status; | 51 int status; |
61 struct sockaddr_in local_addr; 62 struct sockaddr_in remote_addr; 63 void *private_data; | 52 struct sockaddr_in local_addr; 53 struct sockaddr_in remote_addr; 54 void *private_data; |
64 u8 private_data_len; | |
65 void *provider_data; | 55 void *provider_data; |
56 u8 private_data_len; |
|
66 struct socket *so; | 57 struct socket *so; |
58 u8 ord; 59 u8 ird; |
|
67}; 68 69/** 70 * iw_cm_handler - Function to be called by the IW CM when delivering events 71 * to the client. 72 * 73 * @cm_id: The IW CM identifier associated with the event. 74 * @event: Pointer to the event structure. --- 186 unchanged lines hidden --- | 60}; 61 62/** 63 * iw_cm_handler - Function to be called by the IW CM when delivering events 64 * to the client. 65 * 66 * @cm_id: The IW CM identifier associated with the event. 67 * @event: Pointer to the event structure. --- 186 unchanged lines hidden --- |